diff --git a/.mypy.ini b/.mypy.ini index fd7e432c..0c41d4cb 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -24,10 +24,7 @@ ignore_missing_imports = True [mypy-minio] ignore_missing_imports = True -[mypy-google.cloud] -ignore_missing_imports = True - -[mypy-google.api_core] +[mypy-google.*] ignore_missing_imports = True [mypy-testtools] diff --git a/sebs/azure/function_app.py b/sebs/azure/function_app.py index fbe51bee..0f62c400 100644 --- a/sebs/azure/function_app.py +++ b/sebs/azure/function_app.py @@ -22,7 +22,7 @@ def serialize(self) -> dict: } @staticmethod - def deserialize(cached_config: dict) -> FunctionApp: + def deserialize(cached_config: dict) -> "FunctionApp": ret = FunctionApp( cached_config["name"], cached_config["code_package"], @@ -40,11 +40,11 @@ def deserialize(cached_config: dict) -> FunctionApp: class AzureFunction(Function, FunctionApp): @staticmethod - def deserialize(cached_config: dict) -> AzureFunction: + def deserialize(cached_config: dict) -> "AzureFunction": return cast(AzureFunction, FunctionApp.deserialize(cached_config)) class AzureWorkflow(Workflow, FunctionApp): @staticmethod - def deserialize(cached_config: dict) -> AzureWorkflow: + def deserialize(cached_config: dict) -> "AzureWorkflow": return cast(AzureWorkflow, FunctionApp.deserialize(cached_config)) diff --git a/sebs/gcp/gcp.py b/sebs/gcp/gcp.py index d46fb974..8434f4ec 100644 --- a/sebs/gcp/gcp.py +++ b/sebs/gcp/gcp.py @@ -418,7 +418,10 @@ def create_workflow(self, code_package: CodePackage, workflow_name: str) -> "GCP full_workflow_name = GCP.get_full_workflow_name(project_name, location, workflow_name) get_req = ( - self.workflow_client.projects().locations().workflows().get(name=full_workflow_name) # type: ignore + self.workflow_client.projects() # type: ignore + .locations() + .workflows() + .get(name=full_workflow_name) ) try: