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

MNT: handle a deprecation warning from attrs v24.1.0 #1815

Merged
merged 1 commit into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

- Drop ``importlib_metadata`` as a dependency on Python 3.12 and newer [#1810]

- Bumped minimal requirement on ``attrs`` from ``20.1.0`` to ``22.2.0`` [#1815]

3.3.0 (2024-07-12)
------------------

Expand Down
2 changes: 1 addition & 1 deletion asdf/_jsonschema/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class SchemaError(_Error):
_word_for_instance_in_error_message = "schema"


@attr.s(hash=True)
@attr.s(unsafe_hash=True)
class RefResolutionError(Exception):
"""
A ref could not be resolved.
Expand Down
6 changes: 3 additions & 3 deletions asdf/_jsonschema/tests/_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _find_suite():
return root


@attr.s(hash=True)
@attr.s(unsafe_hash=True)
class Suite:

_root = attr.ib(default=attr.Factory(_find_suite))
Expand All @@ -62,7 +62,7 @@ def version(self, name):
)


@attr.s(hash=True)
@attr.s(unsafe_hash=True)
class Version:

_path = attr.ib()
Expand Down Expand Up @@ -139,7 +139,7 @@ def _tests_in(self, subject, path):
)


@attr.s(hash=True, repr=False)
@attr.s(unsafe_hash=True, repr=False)
class _Test:

version = attr.ib()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"pyyaml>=5.4.1",
"semantic_version>=2.8",
# for vendorized jsonschema
"attrs>=20.1.0",
"attrs>=22.2.0",
# end of vendorized jsonschema deps
]
[project.optional-dependencies]
Expand Down
Loading