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

provide provide a decorator to alias keyword kwargs into _ suffix alternatives #337

Open
graingert opened this issue Sep 3, 2020 · 0 comments

Comments

@graingert
Copy link
Contributor

graingert commented Sep 3, 2020

provide a decorator to alias keyword kwargs into _ suffix alternatives

@six.pep492
def task1(ham, async_): return async_

@six.pep492
def task2(ham, await_): return await_

so that

ob = object()
assert (
    ob
    is task1(async=ob)
    is task1(ob)
    is task1(async_=ob)
    is task2(await=ob)
    is task2(ob)
    is task2(await_=ob)
)

See also amyreese/fissix#15

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