From c5637a7085ad50ebe40cff89c0ec855666d4bebc Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Tue, 1 Oct 2019 15:30:51 -0700 Subject: [PATCH 1/1] Fix typechecking under mypy 0.730 (#1039) mypy 0.730 fixed a bug involving nonexistent attributes accessed on modules, which caused an error since COLONEQUAL never got added to token.pyi. Add it. --- blib2to3/pgen2/token.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/blib2to3/pgen2/token.pyi b/blib2to3/pgen2/token.pyi index c256af8..b51bbcf 100644 --- a/blib2to3/pgen2/token.pyi +++ b/blib2to3/pgen2/token.pyi @@ -64,6 +64,7 @@ if sys.version_info >= (3, 5): AWAIT: int ASYNC: int ERRORTOKEN: int +COLONEQUAL: int N_TOKENS: int NT_OFFSET: int tok_name: Dict[int, Text] -- 2.39.5