Skip to content

Commit 21a89f1

Browse files
committed
Disallow deprecated use of _rec_map_container with legacy array types
1 parent e09579e commit 21a89f1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arraycontext/impl/pytato/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,6 @@ def _rec_map_container(
342342
def _wrapper(ary):
343343
if isinstance(ary, allowed_types):
344344
return func(ary)
345-
elif not strict and isinstance(ary, self._frozen_array_types):
346-
from warnings import warn
347-
warn(f"Invoking {type(self).__name__}.{func.__name__[1:]} with"
348-
f" {type(ary).__name__} will be unsupported in 2023. Use"
349-
" 'to_tagged_cl_array' to convert instances to"
350-
" TaggableCLArray.", DeprecationWarning, stacklevel=2)
351-
352-
return func(tga.to_tagged_cl_array(ary))
353345
elif np.isscalar(ary):
354346
if default_scalar is None:
355347
return ary

0 commit comments

Comments
 (0)