Skip to content

Commit aa5666c

Browse files
authored
Merge pull request #1541 from pdeibert/master
Include missing import in standalone parser
2 parents 41934d3 + e96b54a commit aa5666c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lark/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from abc import abstractmethod, ABC
44
import re
5-
from contextlib import suppress
65
from typing import (
76
TypeVar, Type, Dict, Iterator, Collection, Callable, Optional, FrozenSet, Any,
87
ClassVar, TYPE_CHECKING, overload
@@ -23,6 +22,7 @@
2322

2423

2524
###{standalone
25+
from contextlib import suppress
2626
from copy import copy
2727

2828
try: # For the standalone parser, we need to make sure that has_interegular is False to avoid NameErrors later on

0 commit comments

Comments
 (0)