From 58d10ade5372f5f93b758dfe3df522ff9b54753f Mon Sep 17 00:00:00 2001 From: David Chu Date: Sat, 13 Jul 2024 20:32:21 -0400 Subject: [PATCH] Add return hint --- src/compiler/lexer/lol_lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/lexer/lol_lexer.py b/src/compiler/lexer/lol_lexer.py index f0aa514..1fca569 100644 --- a/src/compiler/lexer/lol_lexer.py +++ b/src/compiler/lexer/lol_lexer.py @@ -63,7 +63,7 @@ def __init__(self, path: Path): self.tokens = [] @staticmethod - def _get_identifier_token_type(identifier: str): + def _get_identifier_token_type(identifier: str) -> LolTokenType | None: if identifier in { "while", "for",