From 5391ac3d426a9cfa1317e989e1b312dbe1d7b82f Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 28 Aug 2019 19:50:32 -0700 Subject: DOC: add comment to explain `object.__new__`. [ci skip] --- numpy/doc/subclassing.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/doc') diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py index 786df3722..d0685328e 100644 --- a/numpy/doc/subclassing.py +++ b/numpy/doc/subclassing.py @@ -118,6 +118,7 @@ For example, consider the following Python code: def __new__(cls, *args): print('Cls in __new__:', cls) print('Args in __new__:', args) + # The `object` type __new__ method takes a single argument. return object.__new__(cls) def __init__(self, *args): -- cgit v1.2.1