From: Yilei "Dolee" Yang Date: Fri, 14 Apr 2023 00:12:05 +0000 (-0700) Subject: Explicitly annotate this with `Final[str]` to make it work in mypyc 1.0.0+. (#3645) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/f265ff5bcd0eafcde1e62df89fb8b62ad1439887?hp=a552f7096a9f6e016c9bb1df1e0a77a17caeec1c Explicitly annotate this with `Final[str]` to make it work in mypyc 1.0.0+. (#3645) --- diff --git a/src/blib2to3/pgen2/tokenize.py b/src/blib2to3/pgen2/tokenize.py index 257dbef..a6353d1 100644 --- a/src/blib2to3/pgen2/tokenize.py +++ b/src/blib2to3/pgen2/tokenize.py @@ -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]