[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
This commit is contained in:
Chen Li
2019-03-19 17:20:24 -07:00
committed by Sebastian Rittau
parent afe665690c
commit 094974c3f5

View File

@@ -71,6 +71,10 @@ else:
TEMPLATE = 0
_FlagsType = int
if sys.version_info < (3, 7):
# undocumented
_pattern_type = ... # type: type
class error(Exception): ...
@overload