Skip to content

feat(parser): simplify ParseResult and parse inference #3568

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

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

am29d
Copy link
Contributor

@am29d am29d commented Feb 7, 2025

Summary

Changes

Please provide a summary of what's being changed

This PR simplifies ParseResult type usage. Previously you would need to specify input and output types, which were redundant when not using envelopes.

This change also required type narrowing for the parse function.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #3096


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@am29d am29d requested a review from a team February 7, 2025 10:30
@am29d am29d requested a review from a team as a code owner February 7, 2025 10:30
@boring-cyborg boring-cyborg bot added parser This item relates to the Parser Utility tests PRs that add or change tests labels Feb 7, 2025
@pull-request-size pull-request-size bot added the size/L PRs between 100-499 LOC label Feb 7, 2025
@am29d am29d self-assigned this Feb 7, 2025
Copy link

sonarqubecloud bot commented Feb 7, 2025

@github-actions github-actions bot added the feature PRs that introduce new features or minor changes label Feb 7, 2025
@dreamorosi
Copy link
Contributor

@am29d can I convert it back to draft until the CI is green?

@am29d
Copy link
Contributor Author

am29d commented Feb 7, 2025

@am29d can I convert it back to draft until the CI is green?

Let me fix it.

Copy link

sonarqubecloud bot commented Feb 7, 2025

@dreamorosi dreamorosi self-requested a review February 7, 2025 14:53
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

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

Great work, I tested this locally and it works perfectly 🔥

Thank you for fixing this!

@dreamorosi dreamorosi merged commit 95762ad into main Feb 7, 2025
38 checks passed
@dreamorosi dreamorosi deleted the 3096/infer-parsedresult-signature branch February 7, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature PRs that introduce new features or minor changes parser This item relates to the Parser Utility size/L PRs between 100-499 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: infer ParsedResult types from inputs of parse function
2 participants