mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi.
This commit is contained in:
@@ -581,7 +581,14 @@ class frozenset(AbstractSet[_T], Generic[_T]):
|
||||
def __init__(self) -> None: ...
|
||||
@overload
|
||||
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
||||
def copy(self) -> frozenset[_T]: ...
|
||||
def difference(self, s: AbstractSet[Any]) -> frozenset[_T]: ...
|
||||
def intersection(self, s: AbstractSet[Any]) -> frozenset[_T]: ...
|
||||
def isdisjoint(self, s: AbstractSet[_T]) -> bool: ...
|
||||
def issubset(self, s: AbstractSet[Any]) -> bool: ...
|
||||
def issuperset(self, s: AbstractSet[Any]) -> bool: ...
|
||||
def symmetric_difference(self, s: AbstractSet[_T]) -> frozenset[_T]: ...
|
||||
def union(self, s: AbstractSet[_T]) -> frozenset[_T]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
@@ -590,7 +597,10 @@ class frozenset(AbstractSet[_T], Generic[_T]):
|
||||
def __or__(self, s: AbstractSet[_S]) -> frozenset[Union[_T, _S]]: ...
|
||||
def __sub__(self, s: AbstractSet[_T]) -> frozenset[_T]: ...
|
||||
def __xor__(self, s: AbstractSet[_S]) -> frozenset[Union[_T, _S]]: ...
|
||||
# TODO more set operations
|
||||
def __le__(self, s: AbstractSet[Any]) -> bool: ...
|
||||
def __lt__(self, s: AbstractSet[Any]) -> bool: ...
|
||||
def __ge__(self, s: AbstractSet[Any]) -> bool: ...
|
||||
def __gt__(self, s: AbstractSet[Any]) -> bool: ...
|
||||
|
||||
class enumerate(Iterator[Tuple[int, _T]], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T], start: int = 0) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user