Visitar URL original
Fix a type annotation (#907) · pypa/packaging@81d4923 · GitHub
Skip to content

Commit 81d4923

Browse files
authored
Fix a type annotation (#907)
Also fix a variable name to be more accurate. Brought up in a comment in #860 .
1 parent a43176e commit 81d4923

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/packaging/tags.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def __str__(self) -> str:
9393
def __repr__(self) -> str:
9494
return f"<{self} @ {id(self)}>"
9595

96-
def __setstate__(self, state: tuple[dict[str, Any], dict[str, Any]]) -> None:
96+
def __setstate__(self, state: tuple[None, dict[str, Any]]) -> None:
9797
# The cached _hash is wrong when unpickling.
98-
_old_hash, slots = state
98+
_, slots = state
9999
for k, v in slots.items():
100100
setattr(self, k, v)
101101
self._hash = hash((self._interpreter, self._abi, self._platform))

0 commit comments

Comments
 (0)