python 3.9 does not like the pipe style optional arg types
This commit is contained in:
parent
8bb45c67d3
commit
bc9d820e1d
|
@ -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)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue