python 3.9 does not like the pipe style optional arg types

This commit is contained in:
jasquat 2022-09-23 10:01:22 -04:00
parent 8bb45c67d3
commit bc9d820e1d
2 changed files with 2 additions and 2 deletions

View File

@ -1088,7 +1088,7 @@ def get_spiff_task_from_process_instance(
#
# Methods for secrets CRUD - maybe move somewhere else:
#
def get_secret(key: str) -> str | None:
def get_secret(key: str) -> Optional[str]:
"""Get_secret."""
return SecretService.get_secret(key)

View File

@ -54,7 +54,7 @@ class SecretService:
return secret_model
@staticmethod
def get_secret(key: str) -> str | None:
def get_secret(key: str) -> Optional[str]:
"""Get_secret."""
secret: SecretModel = (
db.session.query(SecretModel).filter(SecretModel.key == key).first()