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: ...