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
master
The following code:
for index, value in enumerate([1, 2, 3]): print(value) print(f"Last index {index}")
Emits the following error:
$ refurb foo.py foo.py:1:5 [FURB148]: Index is unused, use `for value in [1, 2, 3]` instead
But it should not emit any error since index is used outside of the code
Refurb: v2.0.0 Mypy: v1.10.0
Python 3.12.0
# N/A
None
The text was updated successfully, but these errors were encountered:
dosisod
No branches or pull requests
Has your issue already been fixed?
master
branch? See the docs for instructions on how to setup a local build of Refurb.The Bug
The following code:
Emits the following error:
But it should not emit any error since index is used outside of the code
Version Info
Python Version
Python 3.12.0
Config File
# N/A
Extra Info
None
The text was updated successfully, but these errors were encountered: