Skip to content

Fix pyflakes warnings: variable is assigned to but never used#142294

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:assigned_never_used
Dec 8, 2025
Merged

Fix pyflakes warnings: variable is assigned to but never used#142294
vstinner merged 3 commits into
python:mainfrom
vstinner:assigned_never_used

Conversation

@vstinner

@vstinner vstinner commented Dec 5, 2025

Copy link
Copy Markdown
Member

Example of fixed warning:

Lib/functools.py:690:21: local variable 'oldresult'
is assigned to but never used

Example of fixed warning:

    Lib/functools.py:690:21: local variable 'oldresult'
    is assigned to but never used
Comment thread Lib/imaplib.py Outdated
Comment thread Lib/functools.py
@vstinner vstinner merged commit 0b8c348 into python:main Dec 8, 2025
44 checks passed
@vstinner vstinner deleted the assigned_never_used branch December 8, 2025 13:00
@vstinner

vstinner commented Dec 8, 2025

Copy link
Copy Markdown
Member Author

Merged, thanks for reviews. The functools code

@vstinner

vstinner commented Dec 8, 2025

Copy link
Copy Markdown
Member Author

Merged, thanks for reviews.

The functools code now has a noqa comment to prevent future readers to be tempted to review it as well:

                    oldresult = root[RESULT]  # noqa: F841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants