Skip to content

Commit 8c1fa03

Browse files
committed
fix: Disable mypy check to avoid writing a test for a non-relevant use case
1 parent 68ad8d4 commit 8c1fa03

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hypothesis_jsonschema/_canonicalise.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ def __init__(self, schema: Schema) -> None:
8383
self.schema = schema
8484
self.encoded = hash(json.dumps(schema, sort_keys=True))
8585

86-
def __eq__(self, other: object) -> bool:
87-
if not isinstance(other, CacheableSchema):
88-
return NotImplemented
86+
def __eq__(self, other: "CacheableSchema") -> bool: # type: ignore
8987
return self.encoded == other.encoded
9088

9189
def __hash__(self) -> int:

0 commit comments

Comments
 (0)