File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments