Skip to content

Commit

Permalink
chore: provide explicit type hints for profession oids in hash calcul…
Browse files Browse the repository at this point in the history
…ation

Signed-off-by: oleg.hoefling <[email protected]>
  • Loading branch information
hoefling committed Nov 6, 2024
1 parent ae0fcdf commit 7d5d5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptography/x509/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ def __eq__(self, other: object) -> bool:

def __hash__(self) -> int:
if self.profession_oids is None:
profession_oids = (None,)
profession_oids: tuple[ObjectIdentifier | None, ...] = (None,)
else:
profession_oids = tuple(self.profession_oids)
return hash(
Expand Down

0 comments on commit 7d5d5f8

Please sign in to comment.