From 094974c3f5a8ecc5853e4c5a6f5c574a5a81686f Mon Sep 17 00:00:00 2001 From: Chen Li Date: Tue, 19 Mar 2019 17:20:24 -0700 Subject: [PATCH] [re] Add attribute '_pattern_type' to re. (#2877) This is only available before python 3.7 based on: https://github.com/python/cpython/blob/3.6/Lib/re.py#L283 https://github.com/python/cpython/blob/3.7/Lib/re.py --- stdlib/3/re.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/3/re.pyi b/stdlib/3/re.pyi index 942f9bf6b..a303583cb 100644 --- a/stdlib/3/re.pyi +++ b/stdlib/3/re.pyi @@ -71,6 +71,10 @@ else: TEMPLATE = 0 _FlagsType = int +if sys.version_info < (3, 7): + # undocumented + _pattern_type = ... # type: type + class error(Exception): ... @overload