-
Notifications
You must be signed in to change notification settings - Fork 259
fix parsing of generic constraints with "===" #860
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 parsing of generic constraints with "===" #860
Conversation
Reviewer's Guide by SourceryThis pull request fixes an issue where the "===" operator in generic constraints was parsed incorrectly. The fix involves updating the regular expression to match "===" and modifying the parsing logic to treat "===" the same as "==" for generic constraints. New tests have been added to ensure correct parsing of "===". No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @radoering - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
a246a9d
to
316d4cc
Compare
Before, the marker
sys_platform === "linux"
had been parsed towhich is obviously wrong.
Now it is parsed to
which is correct because "==" and "===" are the same for generic constraints.
Disclaimer: This does not change the fact that we do not support "===" for version constraints.
Summary by Sourcery
Fix the parsing of generic constraints to correctly handle the
===
operator as equivalent to==
.Bug Fixes:
===
operator.Tests:
===
operator.