Skip to content

Commit

Permalink
Update: using typing.Union for python 3.7-3.9 compatibility and lcm f…
Browse files Browse the repository at this point in the history
…ix for below python 3.8
  • Loading branch information
infibrocco committed Jan 4, 2024
1 parent 20dae44 commit de78446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yampy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class MathFunc(MathObj):
"log2": (math.log2, 1, 1),
"log10": (math.log10, 1, 1),
"gcd": (math.gcd, 2, 1000),
"lcm": (math.lcm, 2, 1000),
"lcm": (lambda a, b: (a * b) // math.gcd(a, b), 2, 1000),
"xor": (operator.xor, 2, 2),
"int": (int, 1, 1),
"float": (float, 1, 1),
Expand Down

0 comments on commit de78446

Please sign in to comment.