Skip to content

Args & Kwargs - Support Both #1

@anshum4n-git

Description

@anshum4n-git

Currently, because of the way we parse named parameters, it doesn't support passing args.

# query.py
@functools.wraps(func)
def wrapper(**kwargs: Any) -> Any:

We do this because we need named parameters for passing to jinja sql. However, given we have access to function spec, even args should be parseable to named parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions