doorcontrol: Define Credential as frozen to allow hashing
All checks were successful
Ruff / ruff (push) Successful in 32s
Test / test (push) Successful in 3m11s

This commit is contained in:
Adam Goldsmith 2024-09-01 02:09:09 -04:00
parent 8d3f548e8b
commit f29010469a

View File

@ -21,7 +21,7 @@ class InvalidParity(InvalidHexCode):
super().__init__(f"Bad {even_odd} parity") super().__init__(f"Bad {even_odd} parity")
@dataclasses.dataclass @dataclasses.dataclass(frozen=True)
class Credential: class Credential:
bits: bitstring.Bits bits: bitstring.Bits