Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
that's not how you do things
Browse files Browse the repository at this point in the history
adhami3310 committed Jul 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0bcc0da commit dcf79b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_var.py
Original file line number Diff line number Diff line change
@@ -922,9 +922,9 @@ def test_function_var():
def test_var_operation():
@var_operation(output=NumberVar)
def add(a: number_types, b: number_types) -> str:
if isinstance(b, int | float) and b == 0:
if isinstance(b, (int, float)) and b == 0:
return str(a)
if isinstance(a, int | float) and a == 0:
if isinstance(a, (int, float)) and a == 0:
return str(b)
return f"({a} + {b})"

0 comments on commit dcf79b7

Please sign in to comment.