Skip to content

Commit 52931a3

Browse files
committed
fix type bug
1 parent 008385b commit 52931a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/path_result.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ function is_real(
291291
end
292292
return true
293293
end
294-
is_real(r::PathResult, tol::Float64) = is_real(r; tol = tol)
295-
is_real(r::PathResult, tol::Float64, rtol::Float64) = is_real(r; tol = tol, rtol = rtol)
294+
is_real(r::PathResult, tol::Union{Float64,Nothing}) = is_real(r; tol = tol)
295+
is_real(r::PathResult, tol::Union{Float64,Nothing}, rtol::Union{Float64,Nothing}) =
296+
is_real(r; tol = tol, rtol = rtol)
296297
# provide fallback since this in in Base
297298
Base.isreal(r::PathResult, tol) = is_real(r, tol)
298299
Base.isreal(r::PathResult, tol, rtol) = is_real(r, tol, rtol)

0 commit comments

Comments
 (0)