Skip to content

Commit c267ea6

Browse files
author
Christopher Doris
committed
typo
1 parent f3acf38 commit c267ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/concrete/fraction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export pyfraction
77
# works for any collections.abc.Rational
88
function pyconvert_rule_fraction(::Type{R}, x::Py, ::Type{Rational{T0}}=Utils._type_lb(R), ::Type{Rational{T1}}=Utils._type_ub(R)) where {R<:Rational,T0,T1}
99
a = @pyconvert_and_del(Utils._typeintersect(Integer, T1), x.numerator)
10-
b = @pyconvert_and_del(Utils._typeintersect(Integer, T2), x.denominator)
10+
b = @pyconvert_and_del(Utils._typeintersect(Integer, T1), x.denominator)
1111
a, b = promote(a, b)
1212
T2 = Utils._promote_type_bounded(T0, typeof(a), typeof(b), T1)
1313
pyconvert_return(Rational{T2}(a, b))

0 commit comments

Comments
 (0)