ruff/crates/ruff_python_parser/src
Charlie Marsh 6435e4e4aa
Enable auto-return-type involving Optional and Union annotations (#8885)
## Summary

Previously, this was only supported for Python 3.10 and later, since we
always use the PEP 604-style unions.
2023-11-28 18:35:55 -08:00
..
lexer perf(parser): use memchr for lexing comments (#8193) 2023-10-27 02:07:43 +01:00
snapshots Lexer start of line is false only for Mode::Expression (#8880) 2023-11-28 20:38:25 +00:00
context.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
function.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
invalid.rs Reject more syntactically invalid Python programs (#8524) 2023-11-07 07:16:06 -05:00
lexer.rs Lexer start of line is false only for Mode::Expression (#8880) 2023-11-28 20:38:25 +00:00
lib.rs Reject more syntactically invalid Python programs (#8524) 2023-11-07 07:16:06 -05:00
parser.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
python.lalrpop Enable auto-return-type involving Optional and Union annotations (#8885) 2023-11-28 18:35:55 -08:00
python.rs Enable auto-return-type involving Optional and Union annotations (#8885) 2023-11-28 18:35:55 -08:00
soft_keywords.rs Lexer start of line is false only for Mode::Expression (#8880) 2023-11-28 20:38:25 +00:00
string.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
token.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
typing.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00