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

Flatten the implementation of the pipeline() decorator. #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anntzer
Copy link

@anntzer anntzer commented Jan 24, 2023

It seems easier to follow in a single function rather than being spread out in multiple helpers. (It also makes the signature of pipeline() explicit without having to duplicate it.)

Note, by the way, that the func(*ancestors, *args, **kwargs) branch occurs for two opposite values of all_pipe depending on whether is_class is true or false. This looks a bit strange to me, but it's hard for me to say whether it's a bug or not.

It seems easier to follow in a single function rather than being spread
out in multiple helpers.  (It also makes the signature of `pipeline()`
explicit without having to duplicate it.)
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