Skip to content

Commit 228aabd

Browse files
committed
🚨 improve docstring for comma_compact_nulls option in encode_options.py
1 parent bf0b94e commit 228aabd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/qs_codec/models/encode_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def encoder(self, value: t.Optional[t.Callable[[t.Any, t.Optional[Charset], t.Op
111111
"""Only used with `ListFormat.COMMA`. When `True`, single‑item lists append `[]` so they round‑trip back to a list on decode."""
112112

113113
comma_compact_nulls: bool = False
114-
"""Only with `ListFormat.COMMA`. When `True`, omit `None` entries inside lists instead of emitting empty positions (e.g. `[True, False, None, True]` -> `true,false,true`)."""
114+
"""Only with `ListFormat.COMMA`. When `True`, omit `None` entries inside lists instead of emitting empty positions
115+
(e.g. `[True, False, None, True]` -> `true,false,true`)."""
115116

116117
sort: t.Optional[t.Callable[[t.Any, t.Any], int]] = field(default=None)
117118
"""Optional comparator for deterministic key ordering. Must return -1, 0, or +1."""

0 commit comments

Comments
 (0)