vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.83k stars 789 forks source link

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

Closed tserg closed 3 months ago

tserg commented 3 months ago

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-->