diff --git a/portal/model/Uuid.py b/portal/model/Uuid.py
index ebb8625c6904517e134fec5094bb2c8ff697ae5c..44739944fb779e468400078a0e54b23a771f714d 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