Skip to content

Commit 1f380ca

Browse files
committed
fix typing
1 parent 61c12c5 commit 1f380ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lark/load_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ def _unpack_import(self, stmt, grammar_name, base_mangle: Optional[Callable[[str
12301230
else: # Relative import
12311231
if grammar_name == '<string>': # Import relative to script file path if grammar is coded in script
12321232
try:
1233-
base_file = os.path.abspath(sys.modules['__main__'].__file__)
1233+
base_file = os.path.abspath(cast(str, sys.modules['__main__'].__file__))
12341234
except AttributeError:
12351235
base_file = None
12361236
else:

0 commit comments

Comments
 (0)