Skip to content

Commit 315f354

Browse files
committed
Fix.
1 parent c001a9d commit 315f354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/_pytask/collect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def pytask_collect_node( # noqa: C901, PLR0912
437437
node.name = create_name_of_python_node(node_info)
438438
return node
439439

440-
if isinstance(node, UPath):
440+
if isinstance(node, UPath): # pragma: no cover
441441
if not node.protocol:
442442
node = Path(node)
443443
else:

src/_pytask/nodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def load(self, is_product: bool = False) -> Path:
382382
if is_product:
383383
return self.root_dir # type: ignore[return-value]
384384
msg = "'DirectoryNode' cannot be loaded as a dependency" # pragma: no cover
385-
raise NotImplementedError(msg)
385+
raise NotImplementedError(msg) # pragma: no cover
386386

387387
def collect(self) -> list[Path]:
388388
"""Collect paths defined by the pattern."""

0 commit comments

Comments
 (0)