Update 2.7 built-in set to be the same as PY3 set. AbstractSet does not have a union() method.

This commit is contained in:
Guido van Rossum
2016-01-06 16:06:58 -08:00
parent 76b746ba3f
commit 71b8a9f9ec
2 changed files with 28 additions and 17 deletions

View File

@@ -129,7 +129,6 @@ class AbstractSet(Sized, Iterable[_T_co], Generic[_T_co]):
def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...
# TODO: argument can be any container?
def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...
def union(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...
class MutableSet(AbstractSet[_T], Generic[_T]):
@abstractmethod