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

Add clarity to the try in a loop rule #48

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

tonybaloney
Copy link
Owner

Fixes #37

@jenstroeger
Copy link
Contributor

@tonybaloney would it make sense to skip this rule for v3.11+

import sys

if sys.version_info.minor < 11:
    # run the checker

@tonybaloney
Copy link
Owner Author

@tonybaloney would it make sense to skip this rule for v3.11+

import sys

if sys.version_info.minor < 11:
    # run the checker

The problem is you don't always run pylint on the same version that runs the code. Often people install it globally or using pipx

@jenstroeger
Copy link
Contributor

The problem is you don't always run pylint on the same version that runs the code. Often people install it globally or using pipx

You’re right, good point. Nevermind then…

@tonybaloney tonybaloney merged commit 57feb0b into main Jan 10, 2024
15 checks passed
@tonybaloney tonybaloney deleted the zero_cost_exceptions branch January 10, 2024 06:36
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.

R8203 no longer valid for CPython 3.11+
2 participants