Skip to content

Commit

Permalink
use older union tactics
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Jul 23, 2024
1 parent 5728f15 commit 1e263d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def test_function_var():

def test_var_operation():
@var_operation(output=NumberVar)
def add(a: NumberVar | int, b: NumberVar | int) -> str:
def add(a: Union[NumberVar, int], b: Union[NumberVar, int]) -> str:
return f"({a} + {b})"

assert str(add(1, 2)) == "(1 + 2)"
Expand Down

0 comments on commit 1e263d4

Please sign in to comment.