Skip to content

Commit a22f391

Browse files
rgommersmaxwell-aladago
authored andcommitted
DOC: fix issue with __new__ usage in subclassing doc.
Closes numpygh-14386.
1 parent ba11e3d commit a22f391

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎numpy/doc/subclassing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class C(object):
118118
def __new__(cls, *args):
119119
print('Cls in __new__:', cls)
120120
print('Args in __new__:', args)
121-
return object.__new__(cls, *args)
121+
return object.__new__(cls)
122122
123123
def __init__(self, *args):
124124
print('type(self) in __init__:', type(self))

0 commit comments

Comments
 (0)