Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add empty as a explicit condition kwarg #3490

Merged
merged 7 commits into from
Jul 21, 2024

Conversation

dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jul 21, 2024

Partial fix:

This was already being handled internally, but now aligns more closely with when and provides a documentable argument.

I was hoping to get this doc approved, before moving onto when-then-otherwise as this is a smaller change - but will be reused there multiple times

This was already being handled internally, but now aligns with `when` and provides a documentable parameter.
Related: vega#3485 (comment)
An IDE will still be able to trigger this the same way, but when scrolling through (up/down arrows) this has now has lower precedence
It is already covered by `**kwargs`, and this overload describes when an exception is raised https://typing.readthedocs.io/en/latest/spec/special-types.html#never
@mattijn mattijn merged commit c29afaa into vega:main Jul 21, 2024
11 checks passed
@mattijn
Copy link
Contributor

mattijn commented Jul 21, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants