Skip to content

Commit

Permalink
Merge pull request asdf-format#1815 from neutrinoceros/mnt/follow_att…
Browse files Browse the repository at this point in the history
…rs_depr

MNT: handle a deprecation warning from `attrs` v24.1.0
  • Loading branch information
braingram authored Aug 4, 2024
2 parents c25d876 + 14ea0af commit 669f5e2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
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

0 comments on commit 669f5e2

Please sign in to comment.