From b5fe4c0eb7f937e70db15bc087d86fe90f401ff3 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Mon, 27 Feb 2023 16:54:18 +0100 Subject: [PATCH] FIX: Type annotation for SpecInfo.bases - Change Tuple for Sequence for at least one constraint - Add appropriate qualifier for inner type --- pydra/engine/specs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydra/engine/specs.py b/pydra/engine/specs.py index 20d4661bda..e010938d9c 100644 --- a/pydra/engine/specs.py +++ b/pydra/engine/specs.py @@ -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 """