Various stubtest fixes (#5230)

This commit is contained in:
hatal175
2021-04-18 19:30:00 +03:00
committed by GitHub
parent f44f38fda3
commit fbf21995e3
14 changed files with 46 additions and 46 deletions

View File

@@ -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