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.06k stars 104 forks source link

DeprecationWarning: The `hash` argument is deprecated in favor of `unsafe_hash` #485

Closed kasium closed 1 month ago

kasium commented 2 months ago

When running some flake8 tests also including flake8-bugbear I can see the following DeprecationWarning

.nox/test_flake8-3-10-flake8-7/lib/python3.10/site-packages/bugbear.py:49: in <module>
    @attr.s(hash=False)
.nox/test_flake8-3-10-flake8-7/lib/python3.10/site-packages/attr/_make.py:1291: in attrs
    warnings.warn(
E   DeprecationWarning: The `hash` argument is deprecated in favor of `unsafe_hash` and will be removed in or after August 2025.
cooperlees commented 2 months ago

Thanks for the report. PR welcome.