Skip to content
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

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Fix Parsers overloads #49

merged 2 commits into from
Oct 12, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 12, 2022

Fixes tests on main branch due to recent changes in Parsers xparse dispatch.

Fixes tests on main branch due to recent changes in Parsers xparse dispatch.
Copy link
Collaborator

@nickrobinson251 nickrobinson251 left a 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)
Copy link
Collaborator

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?

Copy link
Member Author

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.

Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants