From 8366aa44bbf4c5ae026764c539be0c6ed804376d Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Sun, 17 May 2020 18:05:07 -0700 Subject: [PATCH] Add mistakenly removed constants back to tokenize. (#4030) These constants were removed in https://github.com/python/typeshed/pull/3839 because they are imported from token. However, that is only true in Python 3.7+. --- stdlib/3/tokenize.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdlib/3/tokenize.pyi b/stdlib/3/tokenize.pyi index 25263f31b..d9b91fa77 100644 --- a/stdlib/3/tokenize.pyi +++ b/stdlib/3/tokenize.pyi @@ -3,6 +3,11 @@ from builtins import open as _builtin_open import sys from token import * # noqa: F403 +if sys.version_info < (3, 7): + COMMENT: int + NL: int + ENCODING: int + cookie_re: Pattern[str] blank_re: Pattern[bytes]