Explicitly annotate this with Final[str] to make it work in mypyc 1.0.0+. (#3645)

This commit is contained in:
Yilei "Dolee" Yang 2023-04-13 17:12:05 -07:00 committed by GitHub
parent a552f7096a
commit f265ff5bcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]