Skip to content

Commit ca05f85

Browse files
committed
Small style fix
1 parent f1a92be commit ca05f85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lark/parser_frontends.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def _make_lexer_thread(self, text: Optional[LarkInput]) -> Union[LarkInput, Lexe
116116
return text
117117
if text is None:
118118
return cls(self.lexer, None)
119-
return cls.from_text(self.lexer, text) if isinstance(text, (str, bytes, TextSlice)) else cls.from_custom_input(self.lexer, text)
119+
if isinstance(text, (str, bytes, TextSlice)):
120+
return cls.from_text(self.lexer, text)
121+
return cls.from_custom_input(self.lexer, text)
120122

121123
def parse(self, text: Optional[LarkInput], start=None, on_error=None):
122124
if self.lexer_conf.lexer_type in ("dynamic", "dynamic_complete"):

0 commit comments

Comments
 (0)