From bba72ef534f99422820eb46748804df18063b202 Mon Sep 17 00:00:00 2001 From: Paul Nameless Date: Thu, 22 Apr 2021 11:38:02 +0300 Subject: [PATCH] Fix mypy --- tg/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tg/__main__.py b/tg/__main__.py index 0785d36..a7b1096 100644 --- a/tg/__main__.py +++ b/tg/__main__.py @@ -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)