summaryrefslogtreecommitdiff
path: root/numpy/_globals.py
diff options
context:
space:
mode:
authorczgdp1807 <gdp.1807@gmail.com>2021-06-07 09:15:57 +0530
committerczgdp1807 <gdp.1807@gmail.com>2021-06-07 09:15:57 +0530
commitbe5823f603a37a5de2192f9772dca1b31cffb9be (patch)
treec718c68bafc1d7bff5b75e32a86e680621aa20c3 /numpy/_globals.py
parent3a3d31b338258c099fa4f2d4e4290b19b2a409b0 (diff)
downloadnumpy-be5823f603a37a5de2192f9772dca1b31cffb9be.tar.gz
Addressed reviews and PyArray_CopyConverter defined
Diffstat (limited to 'numpy/_globals.py')
-rw-r--r--numpy/_globals.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/_globals.py b/numpy/_globals.py
index a8f57f3b6..a6fbec340 100644
--- a/numpy/_globals.py
+++ b/numpy/_globals.py
@@ -93,7 +93,7 @@ class _NoValueType:
_NoValue = _NoValueType()
-class CopyMode(enum.Enum):
+class CopyMode(enum.IntEnum):
ALWAYS = 1
IF_NEEDED = 0
@@ -107,4 +107,6 @@ class CopyMode(enum.Enum):
if self == CopyMode.IF_NEEDED:
return False
- raise TypeError(f"{self} is neither True nor False.") \ No newline at end of file
+ raise TypeError(f"{self} is neither True nor False.")
+
+CopyMode.__module__ = 'numpy' \ No newline at end of file