Repository navigation
[pycodestyle] Document E731 fix safety - #26847
Merged
Merged
Conversation
ntBre
reviewed
Jul 15, 2026
pycodestyle] Document E731 fix safetypycodestyle] Document E731 fix safety
|
1 task
This was referenced Aug 8, 2026
MLN601 A3 v5: real Data Preparation stage, weather figures in real units
lfariabr/masters-swe-ai#237
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
Fix safetysection to the documentation forlambda-assignment(E731).The new section explains that converting a lambda assignment into a function
definition changes observable callable metadata. In particular, the function's
__name__changes from"<lambda>"to the assigned variable name, which canaffect code that relies on logging, registration, or introspection.
The E731 fix was changed from display-only to unsafe in #19700. Related
discussion: #19650.
Part of #15584.
Test Plan
cargo fmt --allgit diff --check__name__change.