ruff/crates/ruff_python_ast/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
..
visitor Add a TypeParams node to the AST (#6261) 2023-08-02 14:12:45 +00:00
all.rs Introduce an Arguments AST node for function calls and class definitions (#6259) 2023-08-02 10:01:13 -04:00
call_path.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
cast.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
comparable.rs Box type params and arguments fields on the class definition node (#6275) 2023-08-02 16:47:06 +00:00
docstrings.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
function.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
hashable.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
helpers.rs Move includes_arg_name onto Parameters (#6282) 2023-08-02 18:05:26 +00:00
identifier.rs Rename Parameter#arg and ParameterWithDefault#def fields (#6255) 2023-08-01 14:28:34 -04:00
imports.rs Include alias when formatting import-from structs (#5786) 2023-07-15 15:53:21 -04:00
lib.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
node.rs Add formatting of type parameters in class and function definitions (#6161) 2023-08-02 20:29:28 +00:00
nodes.rs Move includes_arg_name onto Parameters (#6282) 2023-08-02 18:05:26 +00:00
relocate.rs Introduce an Arguments AST node for function calls and class definitions (#6259) 2023-08-02 10:01:13 -04:00
statement_visitor.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_if.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
str.rs Basic string formatting 2023-06-23 09:46:05 +02:00
traversal.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
types.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
visitor.rs Add a TypeParams node to the AST (#6261) 2023-08-02 14:12:45 +00:00
whitespace.rs Ignore end-of-line file exemption comments (#6160) 2023-07-29 00:40:32 +00:00