Skip to content

Commit 80ef1f4

Browse files
committed
Missing check
1 parent 1379962 commit 80ef1f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cryptojwt/jwk/ec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def __eq__(self, other):
275275
:return: True if the keys as the same otherwise False
276276
"""
277277

278+
if self.__class__ != other.__class__:
279+
return False
280+
278281
if cmp_keys(self.pub_key, other.pub_key, ec.EllipticCurvePublicKey):
279282
if other.private_key():
280283
if cmp_keys(self.priv_key, other.priv_key,

0 commit comments

Comments
 (0)