-
-
Notifications
You must be signed in to change notification settings - Fork 843
_EncodingMixin.encode types defined too narrow #3552
Copy link
Copy link
Closed
Labels
Description
What happened?
Noticed this regression since #3515 while writing the test for #3394 (comment)
Minimal repro
import altair as alt
alt.Chart().encode(color=alt.when(x=1).then(alt.value("grey")))What would you like to happen instead?
The types @binste and I defined for EncodeKwds were too strict and didn't account for alt.(condition|when).
The simplest fix would be to add SchemaBase to each annotation - as that is what Then falls into
Which version of Altair are you using?
Reactions are currently unavailable
