]> granicus.if.org Git - python/commitdiff
Remove the funky function annotation from numbers.py.
authorRaymond Hettinger <python@rcn.com>
Wed, 12 Jan 2011 20:52:39 +0000 (20:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 12 Jan 2011 20:52:39 +0000 (20:52 +0000)
Lib/numbers.py

index b8651c2d8298149f992126d03dd24ad753c3efa9..f35704dd3940faab75cb80caf2ab0bd87ab89a51 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