mypy and pre commit

This commit is contained in:
mike cullerton 2022-09-19 08:58:17 -04:00
parent 19583990ab
commit a27434ef90
2 changed files with 2 additions and 1 deletions

View File

@ -654,7 +654,7 @@ def process_instance_report_delete(
def service_tasks_show() -> flask.wrappers.Response: def service_tasks_show() -> flask.wrappers.Response:
"""service_tasks_show.""" """Service_tasks_show."""
available_connectors = ServiceTaskService.available_connectors() available_connectors = ServiceTaskService.available_connectors()
print(available_connectors) print(available_connectors)

View File

@ -22,6 +22,7 @@ class ServiceTaskDelegate:
"""Calls a connector via the configured proxy.""" """Calls a connector via the configured proxy."""
def normalize_value(v: Any) -> Any: def normalize_value(v: Any) -> Any:
"""Normalize_value."""
value = v["value"] value = v["value"]
secret_prefix = "secret:" # noqa: S105 secret_prefix = "secret:" # noqa: S105
if value.startswith(secret_prefix): if value.startswith(secret_prefix):