mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
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:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user