Skip to content

Commit 1f8709c

Browse files
alexfiklinducer
authored andcommitted
add type annotations to is_array_field
1 parent 8559234 commit 1f8709c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arraycontext/container/dataclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def dataclass_array_container(cls: type) -> type:
4646
whether an attribute is an array container, the declared attribute type
4747
is checked by the criteria from :func:`is_array_container_type`.
4848
"""
49-
from dataclasses import is_dataclass
49+
from dataclasses import is_dataclass, Field
5050
assert is_dataclass(cls)
5151

52-
def is_array_field(f):
52+
def is_array_field(f: Field) -> bool:
5353
if __debug__:
5454
if not f.init:
5555
raise ValueError(

0 commit comments

Comments
 (0)