Skip to content
Snippets Groups Projects

Make MyPy happy

Merged karp requested to merge make-mypy-happy into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading