Skip to content

Commit 74ad578

Browse files
committed
rename SERIALIZED_VDOM_JSON_SCHEMA to VDOM_JSON_SCHEMA
1 parent 114acf6 commit 74ad578

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/source/_exts/copy_vdom_json_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
from sphinx.application import Sphinx
55

6-
from idom.core.vdom import SERIALIZED_VDOM_JSON_SCHEMA
6+
from idom.core.vdom import VDOM_JSON_SCHEMA
77

88

99
def setup(app: Sphinx) -> None:
1010
schema_file = Path(__file__).parent.parent / "vdom-json-schema.json"
11-
current_schema = json.dumps(SERIALIZED_VDOM_JSON_SCHEMA, indent=2, sort_keys=True)
11+
current_schema = json.dumps(VDOM_JSON_SCHEMA, indent=2, sort_keys=True)
1212

1313
# We need to make this check because the autoreload system for the docs checks
1414
# to see if the file has changed to determine whether to re-build. Thus we should

src/idom/_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get(self) -> _O:
2828

2929
def set(self, new: _O) -> _O:
3030
if self._immutable:
31-
raise TypeError(f"{self} cannot be modified after initial load.")
31+
raise TypeError(f"{self} cannot be modified after initial load")
3232
old = self._value
3333
self._value = self._validator(new)
3434
return old

src/idom/core/vdom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .events import EventsMapping
99

1010

11-
SERIALIZED_VDOM_JSON_SCHEMA = {
11+
VDOM_JSON_SCHEMA = {
1212
"$schema": "http://json-schema.org/draft-07/schema",
1313
"$ref": "#/definitions/element",
1414
"definitions": {
@@ -63,7 +63,7 @@
6363
}
6464

6565

66-
validate_serialized_vdom = compile_json_schema(SERIALIZED_VDOM_JSON_SCHEMA)
66+
validate_serialized_vdom = compile_json_schema(VDOM_JSON_SCHEMA)
6767

6868

6969
class ImportSourceDict(TypedDict):

0 commit comments

Comments
 (0)