mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-12 18:06:45 +08:00
Various stubtest fixes (#5230)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import enum
|
||||
import sys
|
||||
from sre_constants import error as error
|
||||
from typing import Any, AnyStr, Callable, Iterator, List, Optional, Tuple, Union, overload
|
||||
|
||||
# ----- re variables and constants -----
|
||||
@@ -50,13 +51,6 @@ if sys.version_info < (3, 7):
|
||||
# undocumented
|
||||
_pattern_type: type
|
||||
|
||||
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]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user