Skip to content

Commit a5a4277

Browse files
alexfiklinducer
authored andcommitted
chore: remove useless comment
1 parent f5224f8 commit a5a4277

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

arraycontext/container/dataclass.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,6 @@ def dataclass_array_container(cls: type[T]) -> type[T]:
126126

127127
def is_array_field(f: _Field) -> bool:
128128
field_type = f.type
129-
130-
# NOTE: unions of array containers are treated separately to handle
131-
# unions of only array containers, e.g. `Union[np.ndarray, Array]`, as
132-
# they can work seamlessly with arithmetic and traversal.
133-
#
134-
# `Optional[ArrayContainer]` is not allowed, since `None` is not
135-
# handled by `with_container_arithmetic`, which is the common case
136-
# for current container usage. Other type annotations, e.g.
137-
# `Tuple[Container, Container]`, are also not allowed, as they do not
138-
# work with `with_container_arithmetic`.
139-
#
140-
# This is not set in stone, but mostly driven by current usage!
141-
142-
# NOTE: this should never happen due to using `inspect.get_annotations`
143129
assert not isinstance(field_type, str)
144130

145131
if not f.init:

0 commit comments

Comments
 (0)