mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 11:01:27 +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:
1 parent
76b746ba3f
commit
71b8a9f9ec
2 files changed
+28
-17
No files matched your search
@@ -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