Skip to content

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

Open
anntzer wants to merge 1 commit into
soft-matter:mainfrom
anntzer:p
Open

Flatten the implementation of the pipeline() decorator.#43
anntzer wants to merge 1 commit into
soft-matter:mainfrom
anntzer:p

Conversation

@anntzer

@anntzer anntzer commented Jan 24, 2023

Copy link
Copy Markdown
Contributor

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