Skip to content

docs: Add empty as a explicit condition kwarg#3490

Merged
mattijn merged 7 commits intovega:mainfrom
dangotbanned:condition-param-empty
Jul 21, 2024
Merged

docs: Add empty as a explicit condition kwarg#3490
mattijn merged 7 commits intovega:mainfrom
dangotbanned:condition-param-empty

Conversation

@dangotbanned
Copy link
Copy Markdown
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
@mattijn
Copy link
Copy Markdown
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