Skip to content

Commit e6d0ef1

Browse files
committed
Fix a minor typo in the referencing example docs.
(We apparently forgot a testcode to enable doctesting this one). Closes: #1251
1 parent bceaf41 commit e6d0ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/referencing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ Its purpose is to convert a piece of "opaque" JSON (or really a Python `dict` co
113113
Calling it will inspect a :kw:`$schema` keyword present in the given schema and use that to associate the JSON with an appropriate `specification <referencing.Specification>`.
114114
If your schemas do not contain ``$schema`` dialect identifiers, and you intend for them to be interpreted always under a specific dialect -- say Draft 2020-12 of JSON Schema -- you may instead use e.g.:
115115

116-
.. code:: python
116+
.. testcode::
117117

118118
from referencing import Registry, Resource
119-
from referencing.jsonschema import DRAFT2020212
119+
from referencing.jsonschema import DRAFT202012
120120
schema = DRAFT202012.create_resource({"type": "integer", "minimum": 0})
121121
registry = Registry().with_resources(
122122
[

0 commit comments

Comments
 (0)