Skip to content

Commit

Permalink
try reverting python-attrs#1009
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Sep 14, 2024
1 parent 9e443b1 commit a609419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ build-backend = "hatchling.build"

[project]
name = "attrs"
version = "23.2.0.post1"
authors = [{ name = "Hynek Schlawack", email = "hs@ox.cx" }]
license = "MIT"
requires-python = ">=3.7"
Expand All @@ -26,7 +27,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = ["importlib_metadata;python_version<'3.8'"]
dynamic = ["version", "readme"]
dynamic = ["readme"]

[project.optional-dependencies]
tests-mypy = [
Expand Down Expand Up @@ -70,10 +71,6 @@ Funding = "https://github.com/sponsors/hynek"
Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi"


[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }

[tool.hatch.build.targets.wheel]
packages = ["src/attr", "src/attrs"]

Expand Down
5 changes: 4 additions & 1 deletion src/attr/_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,10 @@ def slots_getstate(self):
"""
Automatically created by attrs.
"""
return {name: getattr(self, name) for name in state_attr_names}
# NOTE: let's see if reverting this unbreaks anything...
# See also https://github.com/python-attrs/attrs/pull/1009
# return {name: getattr(self, name) for name in state_attr_names}
return tuple(getattr(self, name) for name in state_attr_names)

hash_caching_enabled = self._cache_hash

Expand Down

0 comments on commit a609419

Please sign in to comment.