From c31cc36a8a814ed4844a2a553454185601914a5a Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 5 Jan 2020 00:53:30 -0500 Subject: MAINT: Remove implicit inheritance from object class (#15236) Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python. --- numpy/_globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/_globals.py') diff --git a/numpy/_globals.py b/numpy/_globals.py index 6361d94b0..9f44c7729 100644 --- a/numpy/_globals.py +++ b/numpy/_globals.py @@ -54,7 +54,7 @@ class VisibleDeprecationWarning(UserWarning): VisibleDeprecationWarning.__module__ = 'numpy' -class _NoValueType(object): +class _NoValueType: """Special keyword value. The instance of this class may be used as the default value assigned to a -- cgit v1.2.1