Explicitly annotate this with Final[str]
to make it work in mypyc 1.0.0+. (#3645)
This commit is contained in:
parent
a552f7096a
commit
f265ff5bcd
@ -425,7 +425,7 @@ def generate_tokens(
|
||||
logical line; continuation lines are included.
|
||||
"""
|
||||
lnum = parenlev = continued = 0
|
||||
numchars: Final = "0123456789"
|
||||
numchars: Final[str] = "0123456789"
|
||||
contstr, needcont = "", 0
|
||||
contline: Optional[str] = None
|
||||
indents = [0]
|
||||
|
Loading…
Reference in New Issue
Block a user