Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
FIx CI
Browse files Browse the repository at this point in the history
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
  • Loading branch information
Ari Archer committed Mar 25, 2022
1 parent b0c3782 commit 69d04a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arigram/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def forward_msgs(self) -> bool:
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
Expand Down
3 changes: 2 additions & 1 deletion check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8

0 comments on commit 69d04a0

Please sign in to comment.