]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove the funky function annotation from numbers.py.
authorRaymond Hettinger <python@rcn.com>
Wed, 12 Jan 2011 20:54:53 +0000 (20:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 12 Jan 2011 20:54:53 +0000 (20:54 +0000)
Lib/numbers.py

index d7c8931f96cac09aa090262a829eb22651271f6a..201dc3cc2be4295c02542a0204facb0e384055cb 100644 (file)
@@ -189,7 +189,7 @@ class Real(Complex):
         raise NotImplementedError
 
     @abstractmethod
-    def __round__(self, ndigits:"Integral"=None):
+    def __round__(self, ndigits=None):
         """Rounds self to ndigits decimal places, defaulting to 0.
 
         If ndigits is omitted or None, returns an Integral, otherwise