We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GenericObjectData
1 parent 8c4870d commit 3523685Copy full SHA for 3523685
1 file changed
src/simple_chartjs/base.py
@@ -139,14 +139,18 @@ class ObjectData(DatasetData[DataObject]):
139
pass
140
141
142
+class GenericObjectData(DatasetData[dict[str, Any]]): # pyright: ignore[reportExplicitAny]
143
+ pass
144
+
145
146
class Dataset(General):
147
label: str | None = None
148
border_color: Color = Color((0, 0, 0, 0.1))
149
border_cap_style: str = "butt"
150
background_color: Color = Color((0, 0, 0, 0.1))
151
border_dash: list[int] = []
152
border_dash_offset: float = 0.0
- data: PrimitiveData | ArrayData | ObjectData
153
+ data: PrimitiveData | ArrayData | ObjectData | GenericObjectData
154
fill: bool | None = None
155
tension: Decimal = Decimal("0")
156
0 commit comments