Skip to content

Add products with typing.Annotation.#394

Merged
tobiasraabe merged 7 commits into
v4from
implement-product
Jul 8, 2023
Merged

Add products with typing.Annotation.#394
tobiasraabe merged 7 commits into
v4from
implement-product

Conversation

@tobiasraabe

Copy link
Copy Markdown
Member

Changes

Allow to add products with typing.Annotation like

from pathlib import Path
from typing_extensions import Annotated
from pytask import Product

def task_example(path_to_file: Annotated[Path, Product] = Path("out.txt")) -> None:
    path_to_file.touch()

@tobiasraabe tobiasraabe added this to the v0.4.0 milestone Jul 7, 2023
@codecov

codecov Bot commented Jul 7, 2023

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (v4@ae31b65). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 05fc3c6 differs from pull request most recent head 70c55be. Consider uploading reports for the commit 70c55be to get more accurate results

@@          Coverage Diff          @@
##             v4     #394   +/-   ##
=====================================
  Coverage      ?   95.44%           
=====================================
  Files         ?       91           
  Lines         ?     7876           
  Branches      ?        0           
=====================================
  Hits          ?     7517           
  Misses        ?      359           
  Partials      ?        0           
Flag Coverage Δ
end_to_end 82.42% <0.00%> (?)
integration 39.80% <0.00%> (?)
unit 65.85% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@tobiasraabe tobiasraabe mentioned this pull request Jul 5, 2023
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant