mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
[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:
committed by
Sebastian Rittau
parent
afe665690c
commit
094974c3f5
@@ -71,6 +71,10 @@ else:
|
||||
TEMPLATE = 0
|
||||
_FlagsType = int
|
||||
|
||||
if sys.version_info < (3, 7):
|
||||
# undocumented
|
||||
_pattern_type = ... # type: type
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user