Skip to content

Commit 39187cd

Browse files
committed
new ruff inspection
1 parent c55759e commit 39187cd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

quadint/quad/rings.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ def divmod(self, x: QuadInt, y: QuadInt):
554554
For the known finite list of D where the ring of integers is norm-Euclidean,
555555
there exists q such that |N(x - qy)| < |N(y)|.
556556
557+
Returns:
558+
q, r: The quotient and remainder
559+
557560
Raises:
558561
ZeroDivisionError: If the magnitude of the divisor is 0.
559562
ArithmeticError: In the event of a parity mismatch.
560-
561-
Returns:
562-
q, r: The quotient and remainder
563563
"""
564564
y_norm = abs(y) # signed norm (may be negative for D>0)
565565
abs_y_norm = abs(y_norm)
@@ -711,11 +711,11 @@ def factor_detail(self, x: QuadInt) -> Factorization:
711711
Args:
712712
x: A non-zero element of this ring.
713713
714-
Raises:
715-
ValueError: If `x` is zero (zero has no finite prime factorization).
716-
717714
Returns:
718715
Factorization: The unit and prime-power data for ``x``.
716+
717+
Raises:
718+
ValueError: If `x` is zero (zero has no finite prime factorization).
719719
"""
720720
if not x:
721721
raise ValueError("0 does not have a finite factorization")

0 commit comments

Comments
 (0)