Skip to content

Commit

Permalink
Merge pull request #1503 from tybug/typing
Browse files Browse the repository at this point in the history
Type `Terminal.__init__`
  • Loading branch information
erezsh authored Jan 4, 2025
2 parents 9ca0c5d + ad35751 commit aa3f6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lark/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Terminal(Symbol):

is_term: ClassVar[bool] = True

def __init__(self, name, filter_out=False):
def __init__(self, name: str, filter_out: bool = False) -> None:
self.name = name
self.filter_out = filter_out

Expand Down

0 comments on commit aa3f6c2

Please sign in to comment.