From 69d04a0b62df35047e11ccbca817d05a72a231c2 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Fri, 25 Mar 2022 18:04:23 +0200 Subject: [PATCH] FIx CI Signed-off-by: Ari Archer --- arigram/models.py | 2 +- check.sh | 3 ++- runtime.txt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 runtime.txt diff --git a/arigram/models.py b/arigram/models.py index 4b4986f..e3efef5 100644 --- a/arigram/models.py +++ b/arigram/models.py @@ -225,7 +225,7 @@ class Model: self.copied_msgs = (0, []) return True - def get_current_message_text(self) -> tuple[str, bool]: + def get_current_message_text(self) -> Tuple[str, bool]: buffer = [] from_chat_id, msg_ids = self.copied_msgs diff --git a/check.sh b/check.sh index c4418c3..d124056 100755 --- a/check.sh +++ b/check.sh @@ -12,7 +12,8 @@ mypy arigram --warn-redundant-casts --warn-unused-ignores \ --disallow-untyped-calls --disallow-untyped-defs \ --disallow-incomplete-defs --check-untyped-defs \ --disallow-untyped-decorators --pretty --show-traceback \ - --no-warn-unused-ignores --follow-imports=error --namespace-packages + --no-warn-unused-ignores --follow-imports=error --namespace-packages \ + --python-version "$(head -n1 runtime.txt)" echo Checking import sorting... isort -c arigram/*.py diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +3.8