Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Implement Ranged for TypeParam #32

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Implement Ranged for TypeParam #32

merged 1 commit into from
Jul 21, 2023

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jul 20, 2023

Required for astral-sh/ruff#5927

@charliermarsh charliermarsh merged commit fb365c6 into main Jul 21, 2023
@charliermarsh charliermarsh deleted the 695/ranged branch July 21, 2023 00:03
zanieb added a commit to astral-sh/ruff that referenced this pull request Jul 25, 2023
<!--
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 astral-sh/RustPython-Parser#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
astral-sh/RustPython-Parser#32.

## Test Plan

<!-- How was it tested? -->

Adds unit tests with snapshots.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants