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

Restructure transforms #25

Merged
merged 2 commits into from
Oct 13, 2024
Merged

Restructure transforms #25

merged 2 commits into from
Oct 13, 2024

Conversation

zombie-einstein
Copy link
Owner

Flatten transform decorators, removing the nesting required for decorators with argument. Instead they can now be used inline, i.e.

result = transform([init-args...])([transform-args])

or as decorator using partial

@partial(transform, [init-args...])
def foo(...):
    ...

result = foo([transform-args])

@zombie-einstein zombie-einstein merged commit 4afd821 into main Oct 13, 2024
3 checks passed
@zombie-einstein zombie-einstein deleted the restructure_transforms branch October 13, 2024 07:01
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