ruff/crates/ruff_python_formatter/src
Zanie Blue 1a60d1e3c6
Add formatting of type parameters in class and function definitions (#6161)
Part of #5062 
Closes https://github.com/astral-sh/ruff/issues/5931

Implements formatting of a sequence of type parameters in a dedicated
struct for reuse by classes, functions, and type aliases (preparing for
#5929). Adds formatting of type parameters in class and function
definitions — previously, they were just elided.
2023-08-02 20:29:28 +00:00
..
comments Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
expression Fix formatting of lambda star arguments (#6257) 2023-08-02 19:31:20 +00:00
module Add empty lines before nested functions and classes (#6206) 2023-08-01 15:30:59 +00:00
other Fix formatting of lambda star arguments (#6257) 2023-08-02 19:31:20 +00:00
pattern Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
snapshots Remove exception-handler lexing from unused-bound-exception fix (#5851) 2023-07-18 18:27:46 +00:00
statement Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
type_param Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
builders.rs Add formatter support for call and class definition Arguments (#6274) 2023-08-02 11:54:22 -04:00
cli.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
context.rs formatter: WithNodeLevel helper (#6212) 2023-07-31 21:22:17 +00:00
generated.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
lib.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
main.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
options.rs Prefer the configured quote style 2023-06-26 14:24:25 +02:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00