Skip to content

Commit 701520b

Browse files
committed
Fix.
1 parent 87324d9 commit 701520b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
1111
- {pull}`704` adds the `--explain` flag to show why tasks would be executed. Closes {issue}`466`.
1212
- {pull}`706` disables syntax highlighting for platform version information in session header.
1313
- {pull}`707` drops support for Python 3.9 as it has reached end of life.
14+
- {pull}`708` updates mypy and fixes type issues.
1415

1516
## 0.5.5 - 2025-07-25
1617

src/_pytask/collect_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ def _find_common_ancestor_of_all_nodes(
126126
if show_nodes:
127127
all_paths.extend( # type: ignore[var-annotated]
128128
x.path
129-
for x in tree_leaves(task.depends_on)
130-
if isinstance(x, PPathNode) # type: ignore[arg-type]
129+
for x in tree_leaves(task.depends_on) # type: ignore[arg-type]
130+
if isinstance(x, PPathNode)
131131
)
132132
all_paths.extend( # type: ignore[var-annotated]
133133
x.path
134-
for x in tree_leaves(task.produces)
135-
if isinstance(x, PPathNode) # type: ignore[arg-type]
134+
for x in tree_leaves(task.produces) # type: ignore[arg-type]
135+
if isinstance(x, PPathNode)
136136
)
137137

138138
return find_common_ancestor(*all_paths, *paths)

src/_pytask/execute.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,11 @@ def pytask_execute_task_teardown(session: Session, task: PTask) -> None:
301301
return
302302

303303
collect_provisional_products(session, task)
304-
missing_nodes: list[Any] = [
305-
node for node in tree_leaves(task.produces) if not node.state()
306-
] # type: ignore[arg-type, var-annotated]
304+
missing_nodes: list[Any] = [ # type: ignore[var-annotated]
305+
node
306+
for node in tree_leaves(task.produces) # type: ignore[arg-type]
307+
if not node.state()
308+
]
307309
if missing_nodes:
308310
paths = session.config["paths"]
309311
files = [format_node_name(i, paths).plain for i in missing_nodes]

0 commit comments

Comments
 (0)