explicit depps in prov interface

This commit is contained in:
Diogo Sousa
2023-07-29 03:43:35 +01:00
parent a2c4b5c29c
commit 8fb54d28f2

View File

@@ -427,10 +427,10 @@ class ProviderInterface:
return result
def _get_provider_literal(self, available_providers) -> type:
def _get_provider_literal(self, available_providers: List[str]) -> type:
return Literal[tuple(available_providers)] # type: ignore
def _get_provider_choices(self, providers_literal) -> type:
def _get_provider_choices(self, providers_literal: type) -> type:
return make_dataclass(
cls_name="ProviderChoices",
fields=[("provider", providers_literal)],