Do we need to validate the method-based attribute setting separately? #3734
Replies: 2 comments
-
My understanding (and I could be way off) when I saw this was that it was just to have more useful error messages. For example, I tried the following (where it should instead be
and I believe in the ~100 line error message, the word So to my understanding, the idea makes sense but definitely is not a prerequisite to a Release Candidate. |
Beta Was this translation helpful? Give feedback.
-
The traceback is definitely longer when using
It would be nice with a shorter error message though and it makes sense that validating earlier could shorten it. I wonder if validating an additional time would be affected by #2744 |
Beta Was this translation helpful? Give feedback.
-
In #1629, Jake introduced a comment about validating the method-based attribute setting with the schema:
https://github.com/altair-viz/altair/blob/88b706f4afbef00df7c2f724d42f0e001846a3b7/tools/schemapi/schemapi.py#L637-L641
I am not sure if we need to do this as it seems sufficient that the spec is already validated via the usual validation approach. Does anyone see a use for a separate validation here or can we safely remove this comment?
Beta Was this translation helpful? Give feedback.
All reactions