Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore[ux]: remove deprecated python AST classes #3998

Merged
merged 6 commits into from
May 7, 2024

Conversation

tserg
Copy link
Collaborator

@tserg tserg commented May 3, 2024

What I did

Resolves #3970.

How I did it

I think the fix can be limited to updating the handling of docstrings and unary op.

While the NameConstant, Num, Str and Bytes python AST classes are deprecated, they don't raise any warnings, and I think the transformation of the singular python Constant AST node into these equivalent Vyper nodes is still useful. In any case, if we do want to remove the Vyper equivalent of these deprecated classes too, it would probably be worth a PR on its own as the changes are quite extensive (I went down this rabbit hole in a stashed branch).

How to verify it

Commit message

remove references to python AST classes which trigger deprecation
warnings in python 3.12

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@tserg tserg changed the title chore: remove use of deprecated python AST classes chore[ux]: remove use of deprecated python AST classes May 3, 2024
@tserg tserg marked this pull request as ready for review May 3, 2024 12:24
Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks!

@charles-cooper charles-cooper changed the title chore[ux]: remove use of deprecated python AST classes chore[ux]: remove deprecated python AST classes May 7, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) May 7, 2024 12:31
@charles-cooper charles-cooper merged commit ef2d535 into vyperlang:master May 7, 2024
149 checks passed
@tserg tserg deleted the chore/deprec_warnings branch May 7, 2024 13:00
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.

Silence deprecation warnings if Python 3.12 is used
2 participants