Skip to content

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

@kasium

Description

@kasium

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions