Skip to content

Commit

Permalink
Make _divide precision argument a mandatory keyword argument
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Dec 23, 2024
1 parent 85582bf commit 2245a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/justbases/_division.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _round(
)

@staticmethod
def _divide(divisor, remainder, quotient, remainders, base, precision=None):
def _divide(divisor, remainder, quotient, remainders, base, *, precision=None):
"""
Given a divisor and dividend, continue until precision in is reached.
Expand Down Expand Up @@ -150,7 +150,7 @@ def _fractional_division(
quotient = []
remainders = []
remainder = cls._divide(
divisor, remainder * base, quotient, remainders, base, precision
divisor, remainder * base, quotient, remainders, base, precision=precision
)

if remainder == 0:
Expand Down

0 comments on commit 2245a4b

Please sign in to comment.