Skip to content

Commit 25ca310

Browse files
jreakinCopilot
andauthored
Update src/toon_format/decoder.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aa992fd commit 25ca310

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/toon_format/decoder.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ def decode(input_str: str, options: Optional[DecodeOptions] = None) -> Any:
259259
>>> toon = "name: Alice\\nage: 30"
260260
>>> decode(toon)
261261
{'name': 'Alice', 'age': 30}
262-
>>> decode(toon, DecodeOptions(json_indent=2))
263-
'{\\n "name": "Alice",\\n "age": 30\\n}'
262+
>>> print(decode(toon, DecodeOptions(json_indent=2)))
263+
{
264+
"name": "Alice",
265+
"age": 30
266+
}
264267
"""
265268
if options is None:
266269
options = DecodeOptions()

0 commit comments

Comments
 (0)