Skip to content

Commit

Permalink
Make some _fractional_division arguments mandatory keyword arguments
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 2245a4b commit 2950dd3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/justbases/_division.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ def _divide(divisor, remainder, quotient, remainders, base, *, precision=None):

@classmethod
def _fractional_division(
cls, divisor, remainder, base, precision=None, method=RoundingMethods.ROUND_DOWN
cls,
divisor,
remainder,
base,
*,
precision=None,
method=RoundingMethods.ROUND_DOWN
):
"""
Get the repeating and non-repeating part.
Expand Down Expand Up @@ -239,7 +245,9 @@ def division(
non_repeating_part,
repeating_part,
relation,
) = cls._fractional_division(divisor, rem, base, precision, method)
) = cls._fractional_division(
divisor, rem, base, precision=precision, method=method
)

(carry, integer_part) = Nats.carry_in(integer_part, carry, base)

Expand Down

0 comments on commit 2950dd3

Please sign in to comment.