mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 20:31:32 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user