mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
![]() <!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Part of #5062 Requires https://github.com/astral-sh/RustPython-Parser/pull/32 Adds visitation of type alias statements and type parameters in class and function definitions. Duplicates tests for `PreorderVisitor` into `Visitor` with new snapshots. Testing required node implementations for the `TypeParam` enum, which is a chunk of the diff and the reason we need `Ranged` implementations in https://github.com/astral-sh/RustPython-Parser/pull/32. ## Test Plan <!-- How was it tested? --> Adds unit tests with snapshots. |
||
---|---|---|
.. | ||
ruff_python_ast__visitor__tests__class_type_parameters.snap | ||
ruff_python_ast__visitor__tests__compare.snap | ||
ruff_python_ast__visitor__tests__decorators.snap | ||
ruff_python_ast__visitor__tests__dict_comprehension.snap | ||
ruff_python_ast__visitor__tests__function_arguments.snap | ||
ruff_python_ast__visitor__tests__function_positional_only_with_default.snap | ||
ruff_python_ast__visitor__tests__function_type_parameters.snap | ||
ruff_python_ast__visitor__tests__list_comprehension.snap | ||
ruff_python_ast__visitor__tests__match_class_pattern.snap | ||
ruff_python_ast__visitor__tests__set_comprehension.snap | ||
ruff_python_ast__visitor__tests__type_aliases.snap |