diff --git a/pyathena/common.py b/pyathena/common.py index ccb5024e..ea2b34ea 100644 --- a/pyathena/common.py +++ b/pyathena/common.py @@ -255,7 +255,8 @@ def _find_previous_query_id( and e["StatementType"] == AthenaQueryExecution.STATEMENT_TYPE_DML ), - key=lambda e: e["Status"]["CompletionDateTime"], + # https://github.com/python/mypy/issues/9656 + key=lambda e: e["Status"]["CompletionDateTime"], # type: ignore reverse=True, ): if (