Skip to content

Commit

Permalink
Link to jsonyx.allow
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Nov 24, 2024
1 parent fcb47ac commit a94ca1d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/jsonyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def read(
.. versionchanged:: 2.0 Added ``mapping_type`` and ``seq_type``.
:param filename: the path to the JSON file
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param mapping_type: the mapping type
:param seq_type: the sequence type
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
Expand Down Expand Up @@ -149,7 +149,7 @@ def load(
.. versionchanged:: 2.0 Added ``mapping_type`` and ``seq_type``.
:param fp: an open JSON file
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param mapping_type: the mapping type
:param seq_type: the sequence type
:param root: the path to the archive containing this JSON file
Expand Down Expand Up @@ -186,7 +186,7 @@ def loads(
.. versionchanged:: 2.0 Added ``mapping_type`` and ``seq_type``.
:param s: a JSON string
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param filename: the path to the JSON file
:param mapping_type: the mapping type
:param seq_type: the sequence type
Expand Down Expand Up @@ -237,7 +237,7 @@ def write(
:param obj: a Python object
:param filename: the path to the JSON file
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param commas: separate items by commas when indented
:param end: the string to append at the end
:param ensure_ascii: escape non-ASCII characters
Expand Down Expand Up @@ -314,7 +314,7 @@ def dump(
:param obj: a Python object
:param fp: an open JSON file
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param commas: separate items by commas when indented
:param end: the string to append at the end
:param ensure_ascii: escape non-ASCII characters
Expand Down Expand Up @@ -388,7 +388,7 @@ def dumps(
- Merged ``item_separator`` and ``key_separator`` as ``separators``.
:param obj: a Python object
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param commas: separate items by commas when indented
:param end: the string to append at the end
:param ensure_ascii: escape non-ASCII characters
Expand Down Expand Up @@ -445,7 +445,7 @@ def apply_patch(
:param obj: a Python object
:param patch: a JSON patch
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
:raises AssertionError: if an assertion fails
:raises JSONSyntaxError: if a query is invalid
Expand Down Expand Up @@ -480,7 +480,7 @@ def run_select_query(
:param nodes: a node or a list of nodes
:param query: a JSON select query
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param allow_slice: allow slice
:param mapping: map every input node to a single output node
:param relative: query must start with ``"@"`` instead of ``"$"``
Expand Down Expand Up @@ -522,7 +522,7 @@ def run_filter_query(
:param nodes: a node or a list of nodes
:param query: a JSON filter query
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
:raises JSONSyntaxError: if the filter query is invalid
:return: the filtered list of nodes
Expand All @@ -547,7 +547,7 @@ def load_query_value(
.. versionadded:: 2.0
:param s: a JSON query value
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
:raises JSONSyntaxError: if the query value is invalid
:return: a Python object
Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ class Decoder:
.. versionchanged:: 2.0 Added ``mapping_type`` and ``seq_type``.
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param mapping_type: the mapping type
:param seq_type: the sequence type
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class Encoder:
- Made :class:`tuple` JSON serializable.
- Merged ``item_separator`` and ``key_separator`` as ``separators``.
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param commas: separate items by commas when indented
:param end: the string to append at the end
:param ensure_ascii: escape non-ASCII characters
Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Manipulator:
.. versionadded:: 2.0
:param allow: the allowed JSON deviations
:param allow: the JSON deviations from :mod:`jsonyx.allow`
:param use_decimal: use :class:`decimal.Decimal` instead of :class:`float`
"""

Expand Down
2 changes: 1 addition & 1 deletion src/jsonyx/allow.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
COMMENTS | MISSING_COMMAS | NAN_AND_INFINITY | SURROGATES | TRAILING_COMMA
| UNQUOTED_KEYS
)
"""Allow all JSON deviations provided by :mod:`jsonyx`.
"""Allow all JSON deviations.
.. versionchanged:: 2.0 Excluded :data:`!jsonyx.allow.DUPLICATE_KEYS`.
Included :data:`jsonyx.allow.UNQUOTED_KEYS`.
Expand Down

0 comments on commit a94ca1d

Please sign in to comment.