Skip to content
This repository has been 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

Open
ophiry opened this issue Aug 14, 2016 · 0 comments

Comments

@ophiry
Copy link

ophiry commented Aug 14, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant