From df583066adf85e3941191e98490fbd3b4bb62f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Mon, 12 Dec 2022 13:28:29 +0100 Subject: [PATCH] Add: Add missing return type hints --- mattermost_notify/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mattermost_notify/git.py b/mattermost_notify/git.py index bb792ac..35a2b95 100644 --- a/mattermost_notify/git.py +++ b/mattermost_notify/git.py @@ -56,7 +56,7 @@ def get_github_event_json(term: ConsoleTerminal) -> Optional[dict]: return event -def fill_template(args: Namespace, term: ConsoleTerminal): +def fill_template(args: Namespace, term: ConsoleTerminal) -> str: template = LONG_TEMPLATE if args.short: template = SHORT_TEMPLATE @@ -164,7 +164,7 @@ def parse_args(args=None) -> Namespace: return parser.parse_args(args=args) -def main(): +def main() -> None: parsed_args: Namespace = parse_args() term = ConsoleTerminal()