Skip to content

Commit 252049b

Browse files
committed
Fix.
1 parent 09ba22c commit 252049b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ julia = ">=1.0.0"
143143

144144
[tool.pixi.feature.test.tasks]
145145
setup-julia = "julia --project=. --eval 'import Pkg; Pkg.instantiate()'"
146-
test = { cmd = "pytest --cov src --cov tests", depends_on = ["setup-julia"] }
146+
test = { cmd = "pytest --cov src --cov tests", depends-on = ["setup-julia"] }

src/pytask_julia/execute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def pytask_execute_task_setup(task: PTask) -> None:
3636
_, _, serializer, _, _ = julia(**marks[0].kwargs)
3737

3838
serialized_node = task.depends_on["_serialized"]
39-
path: Path = serialized_node.value # type: ignore[attr-defined]
39+
path: Path = serialized_node.value # type: ignore[assignment]
4040
path.parent.mkdir(parents=True, exist_ok=True)
4141
kwargs = collect_keyword_arguments(task)
4242
serialize_keyword_arguments(serializer, path, kwargs)
@@ -45,13 +45,13 @@ def pytask_execute_task_setup(task: PTask) -> None:
4545
def collect_keyword_arguments(task: PTask) -> dict[str, Any]:
4646
"""Collect keyword arguments for function."""
4747
kwargs: dict[str, Any] = {
48-
**tree_map( # type: ignore[dict-item]
48+
**tree_map(
4949
lambda x: str(x.path) if isinstance(x, PPathNode) else str(x.value),
50-
task.depends_on,
50+
task.depends_on, # type: ignore[arg-type]
5151
),
52-
**tree_map( # type: ignore[dict-item]
52+
**tree_map(
5353
lambda x: str(x.path) if isinstance(x, PPathNode) else str(x.value),
54-
task.produces,
54+
task.produces, # type: ignore[arg-type]
5555
),
5656
}
5757
kwargs.pop("_script")

0 commit comments

Comments
 (0)