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
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
Description for the changelog
Cute Animal Picture