Skip to content

Commit b5fe4c0

Browse files
authored
FIX: Type annotation for SpecInfo.bases
- Change Tuple for Sequence for at least one constraint - Add appropriate qualifier for inner type
1 parent 306ac27 commit b5fe4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class SpecInfo:
6969
"""A name for the specification."""
7070
fields: ty.List[ty.Tuple] = attr.ib(factory=list)
7171
"""List of names of fields (can be inputs or outputs)."""
72-
bases: ty.Tuple[ty.Type] = attr.ib(factory=tuple)
72+
bases: ty.Sequence[ty.Type["BaseSpec"]] = attr.ib(factory=tuple)
7373
"""Keeps track of specification inheritance.
7474
Should be a tuple containing at least one BaseSpec """
7575

0 commit comments

Comments
 (0)