ruff/crates/ruff_python_ast
Rebecca Chen 112e9d2d82
[ruff_python_ast] Add name and default functions to TypeParam. (#14964)
## Summary

This change adds `name` and `default` functions to `TypeParam` to access
the corresponding attributes more conveniently. I currently have these
as helper functions in code built on top of ruff_python_ast, and they
seemed like they might be generally useful.

## Test Plan

Ran the checks listed in CONTRIBUTING.md#development.

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-12-15 12:04:51 +00:00
..
src [ruff_python_ast] Add name and default functions to TypeParam. (#14964) 2024-12-15 12:04:51 +00:00
Cargo.toml Remove the optional salsa dependency from the AST crate (#14363) 2024-11-15 16:46:04 +00:00