Skip to content

Commit

Permalink
Add: Add missing return type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Dec 12, 2022
1 parent fb4011d commit df58306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mattermost_notify/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit df58306

Please sign in to comment.