From 7fa961af9a2ddc864cfa0b64bdba1d61997cf8e4 Mon Sep 17 00:00:00 2001 From: Jakob Moser <moser@cl.uni-heidelberg.de> Date: Sat, 17 Aug 2024 15:15:53 +0200 Subject: [PATCH] Use Optional instead of | None for consistency --- portal/model/Uuid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/model/Uuid.py b/portal/model/Uuid.py index ebb8625..4473994 100644 --- a/portal/model/Uuid.py +++ b/portal/model/Uuid.py @@ -27,7 +27,7 @@ class Uuid(types.TypeDecorator): return types.String(UUID_LENGTH) def process_bind_param( - self, value: None | str | UUID, dialect: Dialect + self, value: Optional[str | UUID], dialect: Dialect ) -> Optional[str]: if isinstance(value, str): # Manually create UUID from string, to raise an error if the string is malformed -- GitLab