mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix warnings about object.__init__() signature.
Two (test_array and test_descr) were bug IMO; the third (copy_reg) is a work-around which recognizes that object.__init__() doesn't do anything.
This commit is contained in:
parent
01a807db2a
commit
ab8802a4f7
3 changed files with 2 additions and 3 deletions
|
@ -2305,7 +2305,6 @@ def inherits():
|
|||
__slots__ = ['prec']
|
||||
def __init__(self, value=0.0, prec=12):
|
||||
self.prec = int(prec)
|
||||
float.__init__(self, value)
|
||||
def __repr__(self):
|
||||
return "%.*g" % (self.prec, self)
|
||||
vereq(repr(precfloat(1.1)), "1.1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue