diff options
author | czgdp1807 <gdp.1807@gmail.com> | 2021-06-07 09:15:57 +0530 |
---|---|---|
committer | czgdp1807 <gdp.1807@gmail.com> | 2021-06-07 09:15:57 +0530 |
commit | be5823f603a37a5de2192f9772dca1b31cffb9be (patch) | |
tree | c718c68bafc1d7bff5b75e32a86e680621aa20c3 /numpy/_globals.py | |
parent | 3a3d31b338258c099fa4f2d4e4290b19b2a409b0 (diff) | |
download | numpy-be5823f603a37a5de2192f9772dca1b31cffb9be.tar.gz |
Addressed reviews and PyArray_CopyConverter defined
Diffstat (limited to 'numpy/_globals.py')
-rw-r--r-- | numpy/_globals.py | 6 |
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 |