Skip to content

Commit

Permalink
Blacken more
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed Mar 20, 2023
1 parent f51d729 commit bf183e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,9 @@ def condition(predicate, if_true, if_false, **kwargs):
if_true = if_true.to_dict()
elif isinstance(if_true, str):
if isinstance(if_false, str):
raise ValueError("A field cannot be used in both the `if_true` and `if_false` branches of a condition. One of the them has to specify a `value` or `datum` definition.")
raise ValueError(
"A field cannot be used in both the `if_true` and `if_false` branches of a condition. One of the them has to specify a `value` or `datum` definition."
)
else:
if_true = utils.parse_shorthand(if_true)
if_true.update(kwargs)
Expand Down

0 comments on commit bf183e2

Please sign in to comment.