Skip to content

Commit

Permalink
build: python 3.1 support related change instead fr.gcd use math.gcd
Browse files Browse the repository at this point in the history
  • Loading branch information
ichintanjoshi committed Mar 28, 2024
1 parent 1b457dc commit bcdc50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chem/miller.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def lcm(a, b):
a, b: floats
Returns:
float
int: Because math.gcd will only return int after python 3.9
Previously it depended on type of args, now it'll only return int
"""
return a * b / fr.gcd(a, b)
return a * b / math.gcd(int(a), int(b))


def segment_to_fraction(distance):
Expand Down

0 comments on commit bcdc50a

Please sign in to comment.