We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The UnnecessaryIndexingChecker raises a runtime error on the following code:
UnnecessaryIndexingChecker
def f(lst: list) -> None: i = 0 for i in range(len(lst)): if lst[0]: i = 1 else: i = 2
The text was updated successfully, but these errors were encountered:
unnecessary-indexing: Fix for Python 3.9 and runtime error (#712)
3aa6f24
Resolves #699.
lorena-b
Successfully merging a pull request may close this issue.
The
UnnecessaryIndexingChecker
raises a runtime error on the following code:The text was updated successfully, but these errors were encountered: