8000 provide provide a decorator to alias keyword kwargs into `_` suffix alternatives · Issue #337 · benjaminp/six · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
provide provide a decorator to alias keyword kwargs into _ suffix alternatives #337
Open
@graingert

Description

@graingert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0