From 8871c7285fc097fd1bf713aa184cba7e2804f625 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Wed, 10 Nov 2021 15:36:00 +0100 Subject: MAINT: Do not forward `__(deep)copy__` calls of `_GenericAlias` to the wrapped type Adapt to the python 3.9.8 changes made in bpo-45167. --- numpy/typing/_generic_alias.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/typing/_generic_alias.py') 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: -- cgit v1.2.1