mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Remove function annotations that slipped into _abcoll.
These are reserved for third-party use.
This commit is contained in:
parent
23b628ed0b
commit
b3d89a4ee4
1 changed files with 4 additions and 4 deletions
|
|
@ -311,17 +311,17 @@ class MutableSet(Set):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __ior__(self, it: Iterable):
|
def __ior__(self, it):
|
||||||
for value in it:
|
for value in it:
|
||||||
self.add(value)
|
self.add(value)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __iand__(self, it: Iterable):
|
def __iand__(self, it):
|
||||||
for value in (self - it):
|
for value in (self - it):
|
||||||
self.discard(value)
|
self.discard(value)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __ixor__(self, it: Iterable):
|
def __ixor__(self, it):
|
||||||
if it is self:
|
if it is self:
|
||||||
self.clear()
|
self.clear()
|
||||||
else:
|
else:
|
||||||
|
|
@ -334,7 +334,7 @@ class MutableSet(Set):
|
||||||
self.add(value)
|
self.add(value)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __isub__(self, it: Iterable):
|
def __isub__(self, it):
|
||||||
if it is self:
|
if it is self:
|
||||||
self.clear()
|
self.clear()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue