ruff/crates/ruff_python_ast
Dhruv Manilawala 99dd3a8ab0
Implement as_str & Display for all operator enums (#10691)
## Summary

This PR adds the `as_str` implementation for all the operator methods.
It already exists for `CmpOp` which is being [used in the
linter](ffcd77860c/crates/ruff_linter/src/rules/flake8_simplify/rules/key_in_dict.rs (L117))
and it makes sense to implement it for the rest as well. This will also
be utilized in error messages for the new parser.
2024-04-02 10:34:36 +00:00
..
src Implement as_str & Display for all operator enums (#10691) 2024-04-02 10:34:36 +00:00
tests Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
Cargo.toml refactor: Use QualifiedName for Imported::call_path (#10214) 2024-03-06 09:55:59 +01:00