Skip to content

Commit

Permalink
FIX: Type annotation for SpecInfo.bases
Browse files Browse the repository at this point in the history
- Change Tuple for Sequence for at least one constraint
- Add appropriate qualifier for inner type
  • Loading branch information
ghisvail authored Feb 27, 2023
1 parent 306ac27 commit b5fe4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydra/engine/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class SpecInfo:
"""A name for the specification."""
fields: ty.List[ty.Tuple] = attr.ib(factory=list)
"""List of names of fields (can be inputs or outputs)."""
bases: ty.Tuple[ty.Type] = attr.ib(factory=tuple)
bases: ty.Sequence[ty.Type["BaseSpec"]] = attr.ib(factory=tuple)
"""Keeps track of specification inheritance.
Should be a tuple containing at least one BaseSpec """

Expand Down

0 comments on commit b5fe4c0

Please sign in to comment.