Skip to content

Commit 2ac4492

Browse files
committed
Revert "Match return type of SerializationInfo.mode() to mode of model_dump() (#1770)"
This reverts commit d0dbb09. See #1747 (comment) for more details.
1 parent ecbc893 commit 2ac4492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pydantic_core/core_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def context(self) -> ContextT:
145145
...
146146

147147
@property
148-
def mode(self) -> Literal['python', 'json'] | str:
148+
def mode(self) -> Literal['python', 'json']:
149149
"""The serialization mode set during serialization."""
150150
...
151151

0 commit comments

Comments
 (0)