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?
to your account
Consider this still-common pattern:
match = re.match(regex, string)
As of Python 3.8, this can be rewritten with the "walrus":
if (match := re.match(regex, string)):
Pylint should recommend using the walrus operator in situations like this.
The text was updated successfully, but these errors were encountered:
Thank you, nice suggestion !
Sorry, something went wrong.
Opened a PR for it: #4876
Moving to 2.11 as I feel we already have a lot of things in 2.10 and we're sitting on great unreleased performance improvement.
Successfully merging a pull request may close this issue.