Skip to content

Commit

Permalink
Link to identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Feb 11, 2025
1 parent 825d8d4 commit 3125156
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/source/cli/jsonyx-diff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Options

.. option:: -q, --unquoted-keys

Don't quote keys which are identifiers.
Don't quote keys which are :ref:`identifiers <identifiers>`.

.. option:: -s, --sort-keys

Expand Down
2 changes: 1 addition & 1 deletion docs/source/cli/jsonyx-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Options

.. option:: -q, --unquoted-keys

Don't quote keys which are identifiers.
Don't quote keys which are :ref:`identifiers <identifiers>`..

.. option:: -s, --sort-keys

Expand Down
2 changes: 1 addition & 1 deletion docs/source/cli/jsonyx-patch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Options

.. option:: -q, --unquoted-keys

Don't quote keys which are identifiers.
Don't quote keys which are :ref:`identifiers <identifiers>`..

.. option:: -s, --sort-keys

Expand Down
6 changes: 3 additions & 3 deletions src/jsonyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def write(
:param indent: the number of spaces or string to indent with
:param indent_leaves: indent leaf objects and arrays
:param max_indent_level: the level up to which to indent
:param quoted_keys: quote keys which are identifiers
:param quoted_keys: quote keys which are :ref:`identifiers <identifiers>`
:param separators: the item and key separator
:param sort_keys: sort the keys of objects
:param trailing_comma: add a trailing comma when indented
Expand Down Expand Up @@ -321,7 +321,7 @@ def dump(
:param indent: the number of spaces or string to indent with
:param indent_leaves: indent leaf objects and arrays
:param max_indent_level: the level up to which to indent
:param quoted_keys: quote keys which are identifiers
:param quoted_keys: quote keys which are :ref:`identifiers <identifiers>`
:param separators: the item and key separator
:param sort_keys: sort the keys of objects
:param trailing_comma: add a trailing comma when indented
Expand Down Expand Up @@ -394,7 +394,7 @@ def dumps(
:param indent: the number of spaces or string to indent with
:param indent_leaves: indent leaf objects and arrays
:param max_indent_level: the level up to which to indent
:param quoted_keys: quote keys which are identifiers
:param quoted_keys: quote keys which are :ref:`identifiers <identifiers>`
:param separators: the item and key separator
:param sort_keys: sort the keys of objects
:param trailing_comma: add a trailing comma when indented
Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class Encoder:
:param indent: the number of spaces or string to indent with
:param indent_leaves: indent leaf objects and arrays
:param max_indent_level: the level up to which to indent
:param quoted_keys: quote keys which are identifiers
:param quoted_keys: quote keys which are :ref:`identifiers <identifiers>`
:param separators: the item and key separator
:param sort_keys: sort the keys of objects
:param trailing_comma: add a trailing comma when indented
Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/allow.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"""

UNQUOTED_KEYS: frozenset[str] = frozenset({"unquoted_keys"})
"""Allow unquoted keys in objects which are identifiers.
"""Allow unquoted keys in objects which are :ref:`identifiers <identifiers>`.
.. versionadded:: 2.0
Expand Down

0 comments on commit 3125156

Please sign in to comment.