Skip to content

Commit 983303f

Browse files
committed
DOC: fix issue with __new__ usage in subclassing doc.
Closes numpygh-14386.
1 parent 9cc5f99 commit 983303f

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)