From 4d121ce0c0aa91143602f7e908c65a4afe010d20 Mon Sep 17 00:00:00 2001 From: laughingman7743 Date: Wed, 30 Dec 2020 00:53:44 +0900 Subject: [PATCH] error: Returning Any from function declared to return "_SupportsLessThan" https://github.com/python/mypy/issues/9656 --- pyathena/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (