-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Parsers overloads #49
Conversation
Fixes tests on main branch due to recent changes in Parsers xparse dispatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
I thought something like this would be the eventual best fix but i was too tired to work it out 😆
Also 1 question
@@ -817,7 +820,7 @@ function Parsers.xparse(::Type{T}, source::Union{AbstractVector{UInt8}, IO}, pos | |||
if overflowed | |||
code |= Parsers.OVERFLOW | |||
end | |||
return Parsers.Result{S}(code, res.tlen, x) | |||
return Parsers.Result{T}(code, res.tlen, x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is S
now entirely ignored by this xparse
method? would passing a S != T
have behaved differently before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, essentially we're ignoring S now. Previously, I think that would have broken things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we were actually relying on this JuliaData/CSV.jl#1033
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix #50
Fixes tests on main branch due to recent changes in Parsers xparse dispatch.