This commit is contained in:
burnettk 2022-10-03 15:18:58 -04:00
parent 092553d25b
commit 05a5dbcff0
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,6 @@
"""Fact_service."""
from typing import Any, Optional
from typing import Any
from typing import Optional
from SpiffWorkflow import Task as SpiffTask # type: ignore
@ -15,7 +16,11 @@ class FactService(Script):
do a basic task."""
def run(
self, task: Optional[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,6 @@
"""Get_env."""
from typing import Any, Optional
from typing import Any
from typing import Optional
from SpiffWorkflow import Task as SpiffTask # type: ignore
@ -14,7 +15,11 @@ class GetEnv(Script):
return """Returns the current environment - ie testing, staging, production."""
def run(
self, task: Optional[SpiffTask], environment_identifier: str, *_args: Any, **kwargs: Any
self,
task: Optional[SpiffTask],
environment_identifier: str,
*_args: Any,
**kwargs: Any
) -> Any:
"""Run."""
return environment_identifier