summaryrefslogtreecommitdiff
path: root/numpy/_globals.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-03-19 22:03:06 +1300
committerMike Taves <mwtoews@gmail.com>2021-03-19 22:14:30 +1300
commitc1aa1af62f6e9fcdda92d6d0991b15051a565814 (patch)
tree91d6c55737d99f5e6e97c0991a0dbb863e0a75cd /numpy/_globals.py
parent60cd9d717524e5a003bee9e4270b9c6b8144a7af (diff)
downloadnumpy-c1aa1af62f6e9fcdda92d6d0991b15051a565814.tar.gz
MAINT: use super() as described by PEP 3135
Diffstat (limited to 'numpy/_globals.py')
-rw-r--r--numpy/_globals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_globals.py b/numpy/_globals.py
index 4a8c266d3..0b715c870 100644
--- a/numpy/_globals.py
+++ b/numpy/_globals.py
@@ -77,7 +77,7 @@ class _NoValueType:
def __new__(cls):
# ensure that only one instance exists
if not cls.__instance:
- cls.__instance = super(_NoValueType, cls).__new__(cls)
+ cls.__instance = super().__new__(cls)
return cls.__instance
# needed for python 2 to preserve identity through a pickle