Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add products with typing.Annotation. #394

Merged
merged 7 commits into from Jul 8, 2023
Merged

Add products with typing.Annotation. #394

merged 7 commits into from Jul 8, 2023

Conversation

tobiasraabe
Copy link
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
Copy link

codecov bot commented Jul 7, 2023

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.

None yet

1 participant