Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Dec 5, 2025

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
@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
Copy link
Member Author

vstinner commented Dec 8, 2025

Merged, thanks for reviews. The functools code

@vstinner
Copy link
Member Author

vstinner commented Dec 8, 2025

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