Skip to content

Commit

Permalink
docs: Add summary for _is_condition_closed
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 15, 2024
1 parent 5ee39c2 commit 969e0e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ def _is_condition_extra(obj: Any, *objs: Any, kwds: Map) -> TypeIs[_Condition]:


def _is_condition_closed(obj: Map) -> TypeIs[_ConditionClosed]:
"""Return `True` if ``obj`` can be used in a chained condition."""
return {"empty", "param", "test", "value"} >= obj.keys()


Expand Down

0 comments on commit 969e0e3

Please sign in to comment.