ruff
7db5a924 - [`flake8-comprehensions`] Detect overshadowed `list`/`set`/`dict`, ignore variadics and named expressions (`C417`) (#15955)

Commit
218 days ago
[`flake8-comprehensions`] Detect overshadowed `list`/`set`/`dict`, ignore variadics and named expressions (`C417`) (#15955) ## Summary Part of #15809 and #15876. This change brings several bugfixes: * The nested `map()` call in `list(map(lambda x: x, []))` where `list` is overshadowed is now correctly reported. * The call will no longer reported if: * Any arguments given to `map()` are variadic. * Any of the iterables contain a named expression. ## Test Plan `cargo nextest run` and `cargo insta test`. --------- Co-authored-by: Micha Reiser <micha@reiser.io>
Author
Parents
Loading