ruff/crates/ruff_python_formatter/src/statement
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
..
mod.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_ann_assign.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_assert.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_assign.rs Remove unsupported type_comment field 2023-08-01 12:53:13 +02:00
stmt_async_for.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_async_function_def.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_async_with.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_aug_assign.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_break.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_class_def.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
stmt_continue.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_delete.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_expr.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_for.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_function_def.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
stmt_global.rs Break global and nonlocal statements over continuation lines (#6172) 2023-08-02 19:55:00 +00:00
stmt_if.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_import.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_import_from.rs Preserve end-of-line comments on import-from statements (#6216) 2023-08-01 18:58:05 +00:00
stmt_match.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_nonlocal.rs Break global and nonlocal statements over continuation lines (#6172) 2023-08-02 19:55:00 +00:00
stmt_pass.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_raise.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_return.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_try.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_try_star.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_type_alias.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_while.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_with.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
suite.rs Implement Black's rules around newlines before and after class docstrings (#6209) 2023-08-01 13:33:01 -04:00