File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def from_contents(
108
108
default = default_specification ,
109
109
)
110
110
111
- if specification is None :
111
+ if specification is None : # type: ignore[reportUnnecessaryComparison]
112
112
raise exceptions .CannotDetermineSpecification (contents )
113
113
return cls (contents = contents , specification = specification ) # type: ignore[reportUnknownArgumentType] # noqa: E501
114
114
Original file line number Diff line number Diff line change @@ -217,6 +217,6 @@ def specification_with(
217
217
resource = _SPECIFICATIONS .get (dialect_id )
218
218
if resource is not None :
219
219
return resource .contents
220
- if default is None :
220
+ if default is None : # type: ignore[reportUnnecessaryComparison]
221
221
raise UnknownDialect (dialect_id )
222
222
return default
You can’t perform that action at this time.
0 commit comments