ruff/crates/ruff_python_parser/src
Dhruv Manilawala a58bde6958
Remove less used parser dependencies (#11718)
## Summary

This PR removes the following dependencies from the `ruff_python_parser`
crate:
* `anyhow` (moved to dev dependencies)
* `is-macro`
* `itertools`

The main motivation is that they aren't used much.

Additionally, it updates the return type of `parse_type_annotation` to
use a more specific `ParseError` instead of the generic `anyhow::Error`.

## Test Plan

`cargo insta test`
2024-06-03 13:08:24 +00:00
..
lexer Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
parser Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
snapshots Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
error.rs Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
lexer.rs Remove less used parser dependencies (#11718) 2024-06-03 13:08:24 +00:00
lib.rs Remove less used parser dependencies (#11718) 2024-06-03 13:08:24 +00:00
string.rs Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
token.rs Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
token_set.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
token_source.rs Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
typing.rs Remove less used parser dependencies (#11718) 2024-06-03 13:08:24 +00:00