Skip to content

Commit 2433b82

Browse files
committed
fix: _typing.RowColKwds:2: ERROR: Unknown target name: "generic". [docutils]
See https://altair-viz.github.io/user_guide/generated/theme/altair.theme.RowColKwds.html Discovered this fix in #3631 (comment)
1 parent 180db3e commit 2433b82

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

altair/vegalite/v5/schema/_typing.py

+8
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ class Value(TypedDict, Generic[T]):
128128
value: T
129129
Wrapped value.
130130
131+
Returns
132+
-------
133+
dict
134+
131135
.. _Generic:
132136
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
133137
"""
@@ -180,6 +184,10 @@ class RowColKwds(TypedDict, Generic[T], total=False):
180184
column: T
181185
row: T
182186
187+
Returns
188+
-------
189+
dict
190+
183191
.. _Generic:
184192
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
185193
"""

tools/generate_schema_wrapper.py

+8
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ class Value(TypedDict, Generic[T]):
368368
value: T
369369
Wrapped value.
370370
371+
Returns
372+
-------
373+
dict
374+
371375
.. _Generic:
372376
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
373377
"""
@@ -420,6 +424,10 @@ class RowColKwds(TypedDict, Generic[T], total=False):
420424
column: T
421425
row: T
422426
427+
Returns
428+
-------
429+
dict
430+
423431
.. _Generic:
424432
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
425433
"""

0 commit comments

Comments
 (0)