From f8f0551a9e13b7ee7f4fdad055e7169b54c6e3fb Mon Sep 17 00:00:00 2001 From: Howard Lee Date: Wed, 27 Jan 2016 14:31:50 -0800 Subject: [PATCH] Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi. --- stdlib/2.7/__builtin__.pyi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stdlib/2.7/__builtin__.pyi b/stdlib/2.7/__builtin__.pyi index 17a0789d1..bdbb42a4f 100644 --- a/stdlib/2.7/__builtin__.pyi +++ b/stdlib/2.7/__builtin__.pyi @@ -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: ...