Skip to content

Commit

Permalink
MNT: handle a deprecation warning from attrs v24.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Aug 4, 2024
1 parent c25d876 commit adfa36e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit adfa36e

Please sign in to comment.