diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2019-08-28 16:44:04 -0700 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2019-08-28 16:44:04 -0700 |
commit | 983303f1809b3882d4774fdc220b75711063ef29 (patch) | |
tree | 19fe9c94848a36c85193a2bdb6cf1255e0748625 /numpy/doc/subclassing.py | |
parent | 9cc5f99f3281ade5eef6b097f5853eb8bb471416 (diff) | |
download | numpy-983303f1809b3882d4774fdc220b75711063ef29.tar.gz |
DOC: fix issue with __new__ usage in subclassing doc.
Closes gh-14386.
Diffstat (limited to 'numpy/doc/subclassing.py')
-rw-r--r-- | numpy/doc/subclassing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py index 4b983893a..786df3722 100644 --- a/numpy/doc/subclassing.py +++ b/numpy/doc/subclassing.py @@ -118,7 +118,7 @@ For example, consider the following Python code: def __new__(cls, *args): print('Cls in __new__:', cls) print('Args in __new__:', args) - return object.__new__(cls, *args) + return object.__new__(cls) def __init__(self, *args): print('type(self) in __init__:', type(self)) |