File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
from sphinx .application import Sphinx
5
5
6
- from idom .core .vdom import SERIALIZED_VDOM_JSON_SCHEMA
6
+ from idom .core .vdom import VDOM_JSON_SCHEMA
7
7
8
8
9
9
def setup (app : Sphinx ) -> None :
10
10
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 )
12
12
13
13
# We need to make this check because the autoreload system for the docs checks
14
14
# to see if the file has changed to determine whether to re-build. Thus we should
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def get(self) -> _O:
28
28
29
29
def set (self , new : _O ) -> _O :
30
30
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" )
32
32
old = self ._value
33
33
self ._value = self ._validator (new )
34
34
return old
Original file line number Diff line number Diff line change 8
8
from .events import EventsMapping
9
9
10
10
11
- SERIALIZED_VDOM_JSON_SCHEMA = {
11
+ VDOM_JSON_SCHEMA = {
12
12
"$schema" : "http://json-schema.org/draft-07/schema" ,
13
13
"$ref" : "#/definitions/element" ,
14
14
"definitions" : {
63
63
}
64
64
65
65
66
- validate_serialized_vdom = compile_json_schema (SERIALIZED_VDOM_JSON_SCHEMA )
66
+ validate_serialized_vdom = compile_json_schema (VDOM_JSON_SCHEMA )
67
67
68
68
69
69
class ImportSourceDict (TypedDict ):
You can’t perform that action at this time.
0 commit comments