Argument of type "BrushConfig" cannot be assigned to parameter "mark" of type "Optional[Mark]" in function "selection_interval"
Type "BrushConfig" is not assignable to type "Optional[Mark]"
"BrushConfig" is not assignable to "Mark"
"BrushConfig" is not assignable to "UndefinedType"
Resolves https://github.com/vega/altair/pull/3653#issuecomment-2437209166
Primarily addresses
mark: Mark
, which should bemark: BrushConfig
.As @mattijn noted, interactions-parameter-composition would produce this waring:
I traced this back to:
It was also asked was whether this can be set within a theme. I found that indeed this would be possible (
BrushConfigKwds
).I spotted some others which seemed useful to include (
MergedStreamKwds
,DerivedStreamKwds
).Finally, this PR updates/corrects the typing embedded within the docstring