Skip to content

Commit f63574f

Browse files
committed
Kill 2 more ignores.
1 parent 8499299 commit f63574f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

referencing/_core.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
EMPTY_RESOURCES: PMap[URI, Resource[Any]] = pmap({}, pre_size=64)
1616
EMPTY_ANCHORS = cast(PMap[tuple[URI, str], AnchorType[Any]], EMPTY_RESOURCES)
1717
EMPTY_UNCRAWLED: PSet[URI] = pset(pre_size=128)
18+
EMPTY_PREVIOUS_RESOLVERS: PList[URI] = plist()
1819

1920

2021
class _MaybeInSubresource(Protocol[D]):
@@ -382,14 +383,14 @@ def combine(self, *registries: Registry[D]) -> Registry[D]:
382383
"""
383384
if registries == (self,):
384385
return self
385-
anchors = self._anchors
386386
resources = self._resources
387+
anchors = self._anchors
387388
uncrawled = self._uncrawled
388389
retrieve = self._retrieve
389390
for registry in registries:
390-
anchors = anchors.update(registry._anchors) # type: ignore[reportUnknownMemberType] # noqa: E501
391391
resources = resources.update(registry._resources) # type: ignore[reportUnknownMemberType] # noqa: E501
392-
uncrawled = uncrawled.update(registry._uncrawled) # type: ignore[reportUnknownMemberType] # noqa: E501
392+
anchors = anchors.update(registry._anchors) # type: ignore[reportUnknownMemberType] # noqa: E501
393+
uncrawled = uncrawled.update(registry._uncrawled)
393394

394395
if registry._retrieve != _fail_to_retrieve:
395396
if registry._retrieve != retrieve != _fail_to_retrieve:
@@ -453,7 +454,7 @@ class Resolver(Generic[D]):
453454
_base_uri: str = field(alias="base_uri")
454455
_registry: Registry[D] = field(alias="registry")
455456
_previous: PList[URI] = field(
456-
default=plist(), # type: ignore[reportUnknownArgumentType]
457+
default=EMPTY_PREVIOUS_RESOLVERS,
457458
repr=False,
458459
alias="previous",
459460
)

0 commit comments

Comments
 (0)