From ad35751cb42ddb546518eada4ff0fc20b4336a3d Mon Sep 17 00:00:00 2001 From: Liam DeVoe Date: Fri, 3 Jan 2025 14:55:22 -0500 Subject: [PATCH] type Terminal.__init__ --- lark/grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lark/grammar.py b/lark/grammar.py index 016496bd..3aa8e3ab 100644 --- a/lark/grammar.py +++ b/lark/grammar.py @@ -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