ruff/crates/ruff_python_ast/src
Charlie Marsh e5db72459e
Detect implicit returns in auto-return-types (#8952)
## Summary

Adds detection for branches without a `return` or `raise`, so that we
can properly `Optional` the return types. I'd like to remove this and
replace it with our code graph analysis from the `unreachable.rs` rule,
but it at least fixes the worst offenders.

Closes #8942.
2023-12-01 12:35:01 -05:00
..
visitor Remove #[allow(unused_variables)] from visitor methods (#8828) 2023-11-25 00:09:46 +00:00
all.rs Rename as_str to to_str (#8886) 2023-11-28 18:50:42 -06:00
call_path.rs Store call paths rather than stringified names (#6102) 2023-08-05 15:21:50 +00:00
comparable.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
docstrings.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
expression.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
hashable.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
helpers.rs Detect implicit returns in auto-return-types (#8952) 2023-12-01 12:35:01 -05:00
identifier.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
imports.rs Include alias when formatting import-from structs (#5786) 2023-07-15 15:53:21 -04:00
int.rs Include radix base prefix in large number representation (#7700) 2023-09-28 20:38:06 +00:00
lib.rs Update E402 to work at cell level for notebooks (#8872) 2023-11-29 00:32:35 +00:00
node.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
nodes.rs Rename as_str to to_str (#8886) 2023-11-28 18:50:42 -06:00
parenthesize.rs Comments outside expression parentheses (#7873) 2023-10-19 09:24:11 +00:00
relocate.rs Use AST transformer for relocate (#8660) 2023-11-13 13:24:27 -05:00
statement_visitor.rs Remove Stmt::TryStar (#6566) 2023-08-14 13:39:44 -04:00
stmt_if.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
str.rs Replace dynamic implicit concatenation detection with parser flag (#6513) 2023-08-14 10:27:17 -04:00
traversal.rs [refurb] Implement repeated-append rule (FURB113) (#6702) 2023-08-28 22:51:59 +00:00
types.rs Remove RefEquality (#6393) 2023-08-07 16:04:50 +00:00
visitor.rs Remove #[allow(unused_variables)] from visitor methods (#8828) 2023-11-25 00:09:46 +00:00
whitespace.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00