allow for 'go.Figure | None' annotation in State (#4426)
This commit is contained in:
parent
d7d46e431b
commit
51ca89bc5c
@ -255,7 +255,7 @@ const extractPoints = (points) => {
|
|||||||
|
|
||||||
def _render(self):
|
def _render(self):
|
||||||
tag = super()._render()
|
tag = super()._render()
|
||||||
figure = self.data.to(dict)
|
figure = self.data.to(dict) if self.data is not None else {}
|
||||||
merge_dicts = [] # Data will be merged and spread from these dict Vars
|
merge_dicts = [] # Data will be merged and spread from these dict Vars
|
||||||
if self.layout is not None:
|
if self.layout is not None:
|
||||||
# Why is this not a literal dict? Great question... it didn't work
|
# Why is this not a literal dict? Great question... it didn't work
|
||||||
|
Loading…
Reference in New Issue
Block a user