This commit is contained in:
burnettk 2022-10-03 15:18:08 -04:00
parent 5d449fe984
commit 092553d25b
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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