Skip to content

Commit

Permalink
Fix Sphinx role for DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed May 12, 2024
1 parent acf5642 commit 3062f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Basic Usage
.. versionchanged:: 3.14
Added support for ``allow_nan='as_null'``. Passing any string value
other than ``'as_null'`` for *allow_nan* now triggers a
:warning:`DeprecationWarning`.
:exc:`DeprecationWarning`.

.. note::

Expand Down Expand Up @@ -504,7 +504,7 @@ Encoders and Decoders
.. versionchanged:: 3.14
Added support for ``allow_nan='as_null'``. Passing any string value
other than ``'as_null'`` for *allow_nan* now triggers a
:warning:`DeprecationWarning`.
:exc:`DeprecationWarning`.

.. method:: default(o)

Expand Down

0 comments on commit 3062f12

Please sign in to comment.