summaryrefslogtreecommitdiff
path: root/numpy/typing/_generic_alias.py
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2021-11-11 14:01:57 -0500
committerGitHub <noreply@github.com>2021-11-11 14:01:57 -0500
commite564fcbecfb0b589e224e6e66e8894105a46aedf (patch)
tree4959eea0c72b9ef3571b841670d9b4169038bda0 /numpy/typing/_generic_alias.py
parent8dbd507fb6c854b362c26a0dd056cd04c9c10f25 (diff)
parent8871c7285fc097fd1bf713aa184cba7e2804f625 (diff)
downloadnumpy-e564fcbecfb0b589e224e6e66e8894105a46aedf.tar.gz
Merge pull request #20347 from BvB93/copy
MAINT: Do not forward `__(deep)copy__` calls of `_GenericAlias` to the wrapped type
Diffstat (limited to 'numpy/typing/_generic_alias.py')
-rw-r--r--numpy/typing/_generic_alias.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/typing/_generic_alias.py b/numpy/typing/_generic_alias.py
index 932f12dd0..1eb2c8c05 100644
--- a/numpy/typing/_generic_alias.py
+++ b/numpy/typing/_generic_alias.py
@@ -185,6 +185,8 @@ class _GenericAlias:
"__mro_entries__",
"__reduce__",
"__reduce_ex__",
+ "__copy__",
+ "__deepcopy__",
})
def __getattribute__(self, name: str) -> Any: