Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

[feature request] allow some kind of type annotations besides relying on the default argument type #25

@ophiry

Description

@ophiry

currently, marking a parameter as list requires adding a default list value for it - but this is problematic when the function is also used from regular code (the list may change over time).

additionally, sometimes it's desirable to set a type for a parameter, but keep it mandatory

having something like:

@command('function_name', types={'p1':list})
def function_name(p1,p2):
    pass

can solve this

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