Skip to content

Commit adebd31

Browse files
committed
Complain about spurious type: ignores.
1 parent a83164d commit adebd31

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ multi_line_output = 3
7777
use_parentheses = true
7878

7979
[tool.pyright]
80+
reportUnnecessaryTypeIgnoreComment = true
8081
strict = ["**/*"]
8182
exclude = [
8283
"**/tests/__init__.py",

referencing/_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def pointer(self, pointer: str, resolver: Resolver[D]) -> Resolved[D]:
192192
resolver = self._specification.maybe_in_subresource(
193193
segments=segments,
194194
resolver=resolver,
195-
subresource=self._specification.create_resource(contents), # type: ignore[reportUnknownArgumentType]
195+
subresource=self._specification.create_resource(contents),
196196
)
197197
if resolver is not last:
198198
segments = []
@@ -233,7 +233,7 @@ class Registry(Mapping[URI, Resource[D]]):
233233
converter=HashTrieMap.convert, # type: ignore[reportGeneralTypeIssues]
234234
alias="resources",
235235
)
236-
_anchors: HashTrieMap[tuple[URI, str], AnchorType[D]] = HashTrieMap() # type: ignore[reportGeneralTypeIssues]
236+
_anchors: HashTrieMap[tuple[URI, str], AnchorType[D]] = HashTrieMap()
237237
_uncrawled: HashTrieSet[URI] = EMPTY_UNCRAWLED
238238
_retrieve: Retrieve[D] = field(default=_fail_to_retrieve, alias="retrieve")
239239

0 commit comments

Comments
 (0)