Added additional attributes to re.error (#4463)

https://docs.python.org/3/library/re.html#re.error

These were added in Python 3.5
This commit is contained in:
Nils K
2020-08-19 20:32:53 +02:00
committed by GitHub
parent f093466ad6
commit 0ce16647d8

View File

@@ -76,7 +76,12 @@ if sys.version_info < (3, 7):
# undocumented
_pattern_type: type
class error(Exception): ...
class error(Exception):
msg: str
pattern: str
pos: Optional[int]
lineno: Optional[int]
colno: Optional[int]
@overload
def compile(pattern: AnyStr, flags: _FlagsType = ...) -> Pattern[AnyStr]: ...