Skip to content

Commit 14af4c4

Browse files
Change return type of _serialize_text_object_value to str
Co-authored-by: Kevin A. Mitchell <kam@datalogics.com>
1 parent e6e9bff commit 14af4c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pdfrest/models/_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _serialize_redactions(value: list[_PdfRedactionVariant]) -> str:
148148
return json.dumps(payload, separators=(",", ":"))
149149

150150

151-
def _serialize_text_object_value(value: Any) -> Any:
151+
def _serialize_text_object_value(value: Any) -> str:
152152
if isinstance(value, str):
153153
return value
154154
return json.dumps(value, separators=(",", ":"))

0 commit comments

Comments
 (0)