mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-24 05:18:22 +00:00
fix mypy
This commit is contained in:
parent
5d449fe984
commit
092553d25b
@ -1,5 +1,5 @@
|
||||
"""Fact_service."""
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
||||
|
||||
@ -15,7 +15,7 @@ class FactService(Script):
|
||||
do a basic task."""
|
||||
|
||||
def run(
|
||||
self, task: SpiffTask, environment_identifier: str, *args: Any, **kwargs: Any
|
||||
self, task: Optional[SpiffTask], environment_identifier: str, *args: Any, **kwargs: Any
|
||||
) -> Any:
|
||||
"""Run."""
|
||||
if "type" not in kwargs:
|
||||
|
@ -1,5 +1,5 @@
|
||||
"""Get_env."""
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
||||
|
||||
@ -14,7 +14,7 @@ class GetEnv(Script):
|
||||
return """Returns the current environment - ie testing, staging, production."""
|
||||
|
||||
def run(
|
||||
self, task: SpiffTask, environment_identifier: str, *_args: Any, **kwargs: Any
|
||||
self, task: Optional[SpiffTask], environment_identifier: str, *_args: Any, **kwargs: Any
|
||||
) -> Any:
|
||||
"""Run."""
|
||||
return environment_identifier
|
||||
|
Loading…
x
Reference in New Issue
Block a user