Skip to content

Commit bd6bde6

Browse files
committed
Disable new pyright 'errors'.
1 parent 0d88a20 commit bd6bde6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

referencing/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def from_contents(
108108
default=default_specification,
109109
)
110110

111-
if specification is None:
111+
if specification is None: # type: ignore[reportUnnecessaryComparison]
112112
raise exceptions.CannotDetermineSpecification(contents)
113113
return cls(contents=contents, specification=specification) # type: ignore[reportUnknownArgumentType] # noqa: E501
114114

referencing/jsonschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,6 @@ def specification_with(
217217
resource = _SPECIFICATIONS.get(dialect_id)
218218
if resource is not None:
219219
return resource.contents
220-
if default is None:
220+
if default is None: # type: ignore[reportUnnecessaryComparison]
221221
raise UnknownDialect(dialect_id)
222222
return default

0 commit comments

Comments
 (0)