Skip to content

Commit b1a630d

Browse files
committed
Attempt to fix import issue when unpickling in the standalone parser
1 parent 47fdfbc commit b1a630d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lark/grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class NonTerminal(Symbol):
6060
def serialize(self, memo=None) -> Dict[str, Any]:
6161
# TODO this is here because self.name can be a Token instance.
6262
# remove this function when the issue is fixed. (backwards-incompatible)
63-
return {'name': str(self.name)}
63+
return {'name': str(self.name), '__type__': 'NonTerminal'}
6464

6565

6666
class RuleOptions(Serialize):

0 commit comments

Comments
 (0)