mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-22 09:38:50 +08:00
Drop Python 3.3 support from several stubs (#2266)
* Drop Python 3.3 support from importlib stubs * Drop Python 3.3 support from html and symbol stubs
This commit is contained in:
committed by
Jelle Zijlstra
parent
1184726417
commit
b05e99297c
@@ -47,8 +47,7 @@ Set = TypeAlias(object)
|
||||
FrozenSet = TypeAlias(object)
|
||||
Counter = TypeAlias(object)
|
||||
Deque = TypeAlias(object)
|
||||
if sys.version_info >= (3, 3):
|
||||
ChainMap = TypeAlias(object)
|
||||
ChainMap = TypeAlias(object)
|
||||
|
||||
# Predefined type variables.
|
||||
AnyStr = TypeVar('AnyStr', str, bytes)
|
||||
@@ -553,10 +552,7 @@ class NamedTuple(tuple):
|
||||
@classmethod
|
||||
def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ...
|
||||
|
||||
if sys.version_info >= (3, 1):
|
||||
def _asdict(self) -> collections.OrderedDict[str, Any]: ...
|
||||
else:
|
||||
def _asdict(self) -> Dict[str, Any]: ...
|
||||
def _asdict(self) -> collections.OrderedDict[str, Any]: ...
|
||||
def _replace(self: _T, **kwargs: Any) -> _T: ...
|
||||
|
||||
def NewType(name: str, tp: Type[_T]) -> Type[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user