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

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

Closed
kasium opened this issue Aug 5, 2024 · 1 comment · Fixed by #486
Closed

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

kasium opened this issue Aug 5, 2024 · 1 comment · Fixed by #486

Comments

@kasium
Copy link
Contributor

kasium commented Aug 5, 2024

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
Copy link
Collaborator

Thanks for the report. PR welcome.

henzef added a commit to henzef/flake8-bugbear that referenced this issue Aug 21, 2024
Due to PyCQA#485 / PyCQA#486, bugbear now requires at least attrs 22.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants