@@ -768,7 +768,7 @@ class DangerouslySetInnerHTML(TypedDict):
768768 "children" ,
769769 "attributes" ,
770770 "eventHandlers" ,
771- "inlineJavascript " ,
771+ "inlineJavaScript " ,
772772 "importSource" ,
773773]
774774ALLOWED_VDOM_KEYS = {
@@ -777,7 +777,7 @@ class DangerouslySetInnerHTML(TypedDict):
777777 "children" ,
778778 "attributes" ,
779779 "eventHandlers" ,
780- "inlineJavascript " ,
780+ "inlineJavaScript " ,
781781 "importSource" ,
782782}
783783
@@ -790,7 +790,7 @@ class VdomTypeDict(TypedDict):
790790 children : NotRequired [Sequence [ComponentType | VdomChild ]]
791791 attributes : NotRequired [VdomAttributes ]
792792 eventHandlers : NotRequired [EventHandlerDict ]
793- inlineJavascript : NotRequired [InlineJavascriptDict ]
793+ inlineJavaScript : NotRequired [InlineJavaScriptDict ]
794794 importSource : NotRequired [ImportSourceDict ]
795795
796796
@@ -821,7 +821,7 @@ def __getitem__(self, key: Literal["attributes"]) -> VdomAttributes: ...
821821 @overload
822822 def __getitem__ (self , key : Literal ["eventHandlers" ]) -> EventHandlerDict : ...
823823 @overload
824- def __getitem__ (self , key : Literal ["inlineJavascript " ]) -> InlineJavascriptDict : ...
824+ def __getitem__ (self , key : Literal ["inlineJavaScript " ]) -> InlineJavaScriptDict : ...
825825 @overload
826826 def __getitem__ (self , key : Literal ["importSource" ]) -> ImportSourceDict : ...
827827 def __getitem__ (self , key : VdomDictKeys ) -> Any :
@@ -845,7 +845,7 @@ def __setitem__(
845845 ) -> None : ...
846846 @overload
847847 def __setitem__ (
848- self , key : Literal ["inlineJavascript " ], value : InlineJavascriptDict
848+ self , key : Literal ["inlineJavaScript " ], value : InlineJavaScriptDict
849849 ) -> None : ...
850850 @overload
851851 def __setitem__ (
@@ -880,7 +880,7 @@ class VdomJson(TypedDict):
880880 children : NotRequired [list [Any ]]
881881 attributes : NotRequired [VdomAttributes ]
882882 eventHandlers : NotRequired [dict [str , JsonEventTarget ]]
883- inlineJavascript : NotRequired [dict [str , JavaScript ]]
883+ inlineJavaScript : NotRequired [dict [str , InlineJavaScript ]]
884884 importSource : NotRequired [JsonImportSource ]
885885
886886
@@ -895,7 +895,7 @@ class JsonImportSource(TypedDict):
895895 fallback : Any
896896
897897
898- class JavaScript (str ):
898+ class InlineJavaScript (str ):
899899 """Simple subclass that flags a user's string in ReactPy VDOM attributes as executable JavaScript."""
900900
901901 pass
@@ -938,10 +938,10 @@ class EventHandlerType(Protocol):
938938EventHandlerDict : TypeAlias = dict [str , EventHandlerType ]
939939"""A dict mapping between event names to their handlers"""
940940
941- InlineJavascriptMapping = Mapping [str , JavaScript ]
941+ InlineJavaScriptMapping = Mapping [str , InlineJavaScript ]
942942"""A generic mapping between attribute names to their inline javascript"""
943943
944- InlineJavascriptDict : TypeAlias = dict [str , JavaScript ]
944+ InlineJavaScriptDict : TypeAlias = dict [str , InlineJavaScript ]
945945"""A dict mapping between attribute names to their inline javascript"""
946946
947947
0 commit comments