Skip to content

Commit 023a8af

Browse files
committed
don't tag NamedArray (they inherit tags from their corresponding _container entry)
1 parent 8ea2482 commit 023a8af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arraycontext/impl/pytato/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def preprocess_arg(name, arg):
696696
# multiple placeholders with the same name that are not
697697
# also the same object are not allowed, and this would produce
698698
# a different Placeholder object of the same name.
699-
if (not isinstance(ary, pt.Placeholder)
699+
if (not isinstance(ary, (pt.Placeholder, pt.NamedArray))
700700
and not ary.tags_of_type(NameHint)):
701701
ary = ary.tagged(NameHint(name))
702702

0 commit comments

Comments
 (0)