Skip to content

Commit

Permalink
Linting 7
Browse files Browse the repository at this point in the history
  • Loading branch information
lbrndnr committed Apr 27, 2022
1 parent f22e41b commit 33e1ee2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions sebs/azure/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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))
5 changes: 4 additions & 1 deletion sebs/gcp/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 33e1ee2

Please sign in to comment.