Skip to content

Commit 5e978be

Browse files
committed
tag_axis: don't allow scalars
1 parent cd41747 commit 5e978be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arraycontext/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def tag(self,
502502
@abstractmethod
503503
def tag_axis(self,
504504
iaxis: int, tags: ToTagSetConvertible,
505-
array: ArrayOrContainerOrScalarT) -> ArrayOrContainerOrScalarT:
505+
array: ArrayOrContainerT) -> ArrayOrContainerT:
506506
"""If the array type used by the array context is capable of capturing
507507
metadata, return a version of *array* in which axis number *iaxis* has
508508
the *tags* applied. *array* itself is not modified. When working with

0 commit comments

Comments
 (0)