ruff/crates/ruff_python_semantic/src/analyze
Tom Kuson 37d21c0d54
Check sequence type before triggering unnecessary-enumerate (FURB148) len suggestion (#7781)
## Summary

Check that the sequence type is a list, set, dict, or tuple before
recommending replacing the `enumerate(...)` call with `range(len(...))`.
Document behaviour so users are aware of the type inference limitation
leading to false negatives.

Closes #7656.
2023-10-03 14:39:14 +00:00
..
function_type.rs Return a slice in StmtClassDef#bases (#6311) 2023-08-03 16:21:55 +00:00
logging.rs Allow capitalized names for logger candidate heuristic match (#6356) 2023-08-04 23:25:34 +00:00
mod.rs Add branch detection to the semantic model (#6694) 2023-08-19 21:28:17 +00:00
type_inference.rs Add support for unions to our Python builtins type system (#6541) 2023-08-13 18:00:50 -04:00
typing.rs Check sequence type before triggering unnecessary-enumerate (FURB148) len suggestion (#7781) 2023-10-03 14:39:14 +00:00
visibility.rs [pylint] Implement too-many-public-methods rule (PLR0904) (#6179) 2023-09-14 00:52:26 +00:00