fix var warning (#3704)

This commit is contained in:
Thomas Brandého 2024-07-25 19:50:18 +02:00 committed by GitHub
parent ede5cd1f2c
commit d389f4b5ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ class Area(Cartesian):
fill: Var[Union[str, Color]] = Var.create_safe(Color("accent", 5))
# The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' |
type_: Var[LiteralAreaType] = Var.create_safe("monotone")
type_: Var[LiteralAreaType] = Var.create_safe("monotone", _var_is_string=True)
# If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally.
dot: Var[Union[bool, Dict[str, Any]]]

View File

@ -234,7 +234,7 @@ class LabelList(Recharts):
fill: Var[Union[str, Color]] = Var.create_safe(Color("gray", 10))
# The stroke color of each label
stroke: Var[Union[str, Color]] = Var.create_safe("none")
stroke: Var[Union[str, Color]] = Var.create_safe("none", _var_is_string=True)
responsive_container = ResponsiveContainer.create