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

Should we expose decorators at the package top-level? #354

Open
GeigerJ2 opened this issue Nov 20, 2024 · 0 comments
Open

Should we expose decorators at the package top-level? #354

GeigerJ2 opened this issue Nov 20, 2024 · 0 comments

Comments

@GeigerJ2
Copy link
Contributor

GeigerJ2 commented Nov 20, 2024

Currently, we expose both task, as well as Task at the top-level API, with the first being the decorator and the second one the class:

from .decorator import task, build_task
__version__ = "0.4.5"
__all__ = ["WorkGraph", "Task", "task", "build_task"]

I found this a bit confusing, personally.

EDIT: As noted by @superstar54, Task should not be exposed.

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

No branches or pull requests

1 participant