Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/source/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
releases are available on [PyPI](https://pypi.org/project/pytask) and
[Anaconda.org](https://anaconda.org/conda-forge/pytask).

## 0.4.6

- {pull}`548` fixes the type hints for {meth}`~pytask.Task.execute` and
{meth}`~pytask.TaskWithoutPath.execute`. Thanks to {user}`Ostheer`.

## 0.4.5 - 2024-01-09

- {pull}`515` enables tests with graphviz in CI. Thanks to {user}`NickCrews`.
Expand Down
4 changes: 2 additions & 2 deletions src/_pytask/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def state(self) -> str | None:
else:
return hashlib.sha256(source.encode()).hexdigest()

def execute(self, **kwargs: Any) -> None:
def execute(self, **kwargs: Any) -> Any:
"""Execute the task."""
return self.function(**kwargs)

Expand Down Expand Up @@ -140,7 +140,7 @@ def state(self) -> str | None:
return hash_path(self.path, modification_time)
return None

def execute(self, **kwargs: Any) -> None:
def execute(self, **kwargs: Any) -> Any:
"""Execute the task."""
return self.function(**kwargs)

Expand Down