Skip to content

Commit 437d6c4

Browse files
committed
Use referencing.jsonschema.EMPTY_REGISTRY
1 parent 1c162f2 commit 437d6c4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

jsonschema_specifications/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
"""
22
The JSON Schema meta-schemas and vocabularies, exposed as a Registry.
33
"""
4-
from referencing import Registry as _Registry
5-
from referencing.jsonschema import SchemaRegistry as _SchemaRegistry
4+
from referencing.jsonschema import EMPTY_REGISTRY as _EMPTY_REGISTRY
65

76
from jsonschema_specifications._core import _schemas
87

98
#: A `referencing.jsonschema.SchemaRegistry` containing all of the official
109
#: meta-schemas and vocabularies.
11-
REGISTRY: _SchemaRegistry = (_schemas() @ _Registry()).crawl()
12-
10+
REGISTRY = _schemas() @ _EMPTY_REGISTRY
1311
__all__ = ["REGISTRY"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ classifiers = [
3939
]
4040
dynamic = ["version"]
4141
dependencies = [
42-
"referencing>=0.28.0",
42+
"referencing>=0.31.0",
4343
"importlib_resources>=1.4.0;python_version<'3.9'",
4444
]
4545

0 commit comments

Comments
 (0)