Resolve mypy error

This commit is contained in:
bom 2023-05-26 08:53:32 +02:00
parent e3703042b0
commit 92e3181323

View file

@ -1,4 +1,4 @@
from typing import List, Set from typing import List, Set, Dict, Any
from pathlib import Path from pathlib import Path
from .common import ( from .common import (
Validateable, Validateable,
@ -34,7 +34,7 @@ class TerraformDomain(Validateable):
self.tf_use_package_common_files = inp.get("tf_use_package_common_files", True) self.tf_use_package_common_files = inp.get("tf_use_package_common_files", True)
provider_types = TerraformDomain.parse_provider_types(self.tf_provider_types) provider_types = TerraformDomain.parse_provider_types(self.tf_provider_types)
self.providers = {} self.providers: Dict[ProviderType, Any] = {}
if ProviderType.DIGITALOCEAN in provider_types: if ProviderType.DIGITALOCEAN in provider_types:
self.providers[ProviderType.DIGITALOCEAN] = Digitalocean(inp) self.providers[ProviderType.DIGITALOCEAN] = Digitalocean(inp)
if ProviderType.HETZNER in provider_types: if ProviderType.HETZNER in provider_types: