mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix mypy
This commit is contained in:
parent
4d5d228e73
commit
bba72ef534
1 changed files with 4 additions and 1 deletions
|
@ -42,10 +42,13 @@ def run(tg: Tdlib, stdscr: window) -> None:
|
|||
|
||||
controller.draw()
|
||||
|
||||
def parse_args():
|
||||
|
||||
def parse_args() -> None:
|
||||
import sys
|
||||
|
||||
if len(sys.argv) > 1 and sys.argv[1] in ("-v", "--version"):
|
||||
import tg
|
||||
|
||||
print("Terminal Telegram client")
|
||||
print("Version:", tg.__version__)
|
||||
exit(0)
|
||||
|
|
Loading…
Reference in a new issue