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

Remove use of the deprecated ast.Constant.s attribute #392

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

AlexWaygood
Copy link
Contributor

The .s attribute on ast.Constant nodes is an alias to the .value attribute. The .s alias has been deprecated since Python 3.8, and causes a DeprecationWarning to be emitted on Python 3.12

The `.s` attribute on `ast.Constant` nodes is an alias to the `.value` attribute. The `.s` alias has been deprecated since Python 3.8, and causes a DeprecationWarning to be emitted on Python 3.12
@JelleZijlstra JelleZijlstra merged commit 2763a13 into PyCQA:main Jun 26, 2023
@JelleZijlstra
Copy link
Collaborator

Thanks!

@AlexWaygood AlexWaygood deleted the patch-1 branch June 26, 2023 17: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.

2 participants