We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8559234 commit 1f8709cCopy full SHA for 1f8709c
1 file changed
arraycontext/container/dataclass.py
@@ -46,10 +46,10 @@ def dataclass_array_container(cls: type) -> type:
46
whether an attribute is an array container, the declared attribute type
47
is checked by the criteria from :func:`is_array_container_type`.
48
"""
49
- from dataclasses import is_dataclass
+ from dataclasses import is_dataclass, Field
50
assert is_dataclass(cls)
51
52
- def is_array_field(f):
+ def is_array_field(f: Field) -> bool:
53
if __debug__:
54
if not f.init:
55
raise ValueError(
0 commit comments