Skip to content

Add a function to identify ast Constant nodes more granularly#638

Merged
lieryan merged 2 commits intomasterfrom
lieryan-fine-grained-ast-node-identification
Jan 3, 2023
Merged

Add a function to identify ast Constant nodes more granularly#638
lieryan merged 2 commits intomasterfrom
lieryan-fine-grained-ast-node-identification

Conversation

@lieryan
Copy link
Member

@lieryan lieryan commented Jan 3, 2023

Description

This is useful for the tests, that benefits from the more granular identification, making the test cases a bit more readable than if everything is an ast.Constant.

All supported versions now supports sets and comprehensions
This handles the checkers in patchedasttest.py better than merging
all Constant into one thing, since soon we no longer would have Python
3.7 and lower testing these cases for us.
@lieryan lieryan added this to the 1.7.0 milestone Jan 3, 2023
@lieryan lieryan self-assigned this Jan 3, 2023
@lieryan lieryan enabled auto-merge January 3, 2023 12:16
@lieryan lieryan merged commit 163aef3 into master Jan 3, 2023
@lieryan lieryan deleted the lieryan-fine-grained-ast-node-identification branch January 3, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant