From: Raymond Hettinger Date: Wed, 12 Jan 2011 20:37:47 +0000 (+0000) Subject: Remove function annotations that slipped into _abcoll. X-Git-Tag: v3.2rc1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3d89a4ee438ee6927bfe553694b5b06f5672274;p=thirdparty%2FPython%2Fcpython.git Remove function annotations that slipped into _abcoll. These are reserved for third-party use. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 0957553613b7..2417d187cd3a 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -311,17 +311,17 @@ class MutableSet(Set): except KeyError: pass - def __ior__(self, it: Iterable): + def __ior__(self, it): for value in it: self.add(value) return self - def __iand__(self, it: Iterable): + def __iand__(self, it): for value in (self - it): self.discard(value) return self - def __ixor__(self, it: Iterable): + def __ixor__(self, it): if it is self: self.clear() else: @@ -334,7 +334,7 @@ class MutableSet(Set): self.add(value) return self - def __isub__(self, it: Iterable): + def __isub__(self, it): if it is self: self.clear() else: