Skip to content

Commit c7b9971

Browse files
feat: make env spec generic
1 parent 1425a51 commit c7b9971

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • snakemake_interface_software_deployment_plugins

snakemake_interface_software_deployment_plugins/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,15 @@ def run(self, cmd: str, **kwargs) -> sp.CompletedProcess:
169169

170170

171171
TSettings = TypeVar("TSettings", bound="SoftwareDeploymentSettingsBase")
172+
TEnvSpec = TypeVar("TEnvSpec", bound="EnvSpecBase")
172173

173174

174-
class EnvBase(ABC, Generic[TSettings]):
175+
class EnvBase(ABC, Generic[TSettings, TEnvSpec]):
175176
_cache: ClassVar[Dict[Tuple[Type["EnvBase"], Optional["EnvBase"]], Any]] = {}
176177

177178
def __init__(
178179
self,
179-
spec: EnvSpecBase,
180+
spec: TEnvSpec,
180181
within: Optional["EnvBase"],
181182
settings: Optional[TSettings],
182183
shell_executable: ShellExecutable,

0 commit comments

Comments
 (0)