Skip to content

Commit c8dadd5

Browse files
committed
🚨 Tweak type for older Pythons
1 parent 6147c7d commit c8dadd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def model_dump(
870870
exclude_none: bool = False,
871871
round_trip: bool = False,
872872
warnings: Union[bool, Literal["none", "warn", "error"]] = True,
873-
fallback: Callable[[Any], Any] | None = None,
873+
fallback: Union[Callable[[Any], Any], None] = None,
874874
serialize_as_any: bool = False,
875875
) -> Dict[str, Any]:
876876
if PYDANTIC_MINOR_VERSION >= (2, 7):

0 commit comments

Comments
 (0)