Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -1,5 +1,4 @@
import collections.abc
import sys
from _typeshed import Self, SupportsKeysAndGetItem
from collections.abc import Callable, Iterable, Iterator, Mapping
from typing import Any, Generic, NoReturn, TypeVar, overload
@@ -68,25 +67,7 @@ class OrderedProperties(Properties[_T], Generic[_T]):
class ImmutableProperties(ImmutableContainer, Properties[_T], Generic[_T]): ...
if sys.version_info >= (3, 7):
OrderedDict = dict
else:
class OrderedDict(dict[Any, Any]):
def __reduce__(self): ...
def __init__(self, ____sequence: Any | None = ..., **kwargs) -> None: ...
def clear(self) -> None: ...
def copy(self): ...
def __copy__(self): ...
def update(self, ____sequence: Any | None = ..., **kwargs) -> None: ...
def setdefault(self, key, value): ...
def __iter__(self): ...
def keys(self): ...
def values(self): ...
def items(self): ...
def __setitem__(self, key, obj) -> None: ...
def __delitem__(self, key) -> None: ...
def pop(self, key, *default): ...
def popitem(self): ...
OrderedDict = dict
def sort_dictionary(d, key: Any | None = ...): ...