Skip to content

Commit

Permalink
Fix 'mypy' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Jul 10, 2023
1 parent 18078f6 commit 9b83013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fraction_tests/test_constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_basic(numerator: BigInteger, denominator: BigInteger) -> None:
def test_no_argument() -> None:
result = Fractions.Fraction()

assert result == Fractions.Fraction(0, 1)
assert result == Fractions.Fraction(BigInteger.Zero, BigInteger.One)


@given(strategies.fractions)
Expand All @@ -32,7 +32,7 @@ def test_copy_constructor(fraction: Fractions.Fraction) -> None:


@given(strategies.numerators, strategies.denominators)
def test_properties(numerator: int, denominator: int) -> None:
def test_properties(numerator: BigInteger, denominator: BigInteger) -> None:
result = Fractions.Fraction(numerator, denominator)

assert equivalence(numerator.IsZero, result.numerator.IsZero)
Expand Down

0 comments on commit 9b83013

Please sign in to comment.