PyCQA / flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
MIT License
1.05k stars 103 forks source link

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

Closed AlexWaygood closed 1 year ago

AlexWaygood commented 1 year ago

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 commented 1 year ago

Thanks!