-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
import typedparse
def f1(name: str):
"""f1
:param name: name
:return: None
"""
def f2(name: str):
"""f2
:param name: name
:return: None
"""
if __name__ == "__main__":
typedparse.parse([f1, f2])causes an error if we start the script without arguments:
python ./tt.py
Traceback (most recent call last):
File "./tt.py", line 20, in <module>
typedparse.parse([f1, f2])
File "/home/ilya/HORIS/Projector/github/tptest/venv/lib/python3.6/site-packages/typedparse/__init__.py", line 41, in parse
)).create(obj).parse()
File "/home/ilya/HORIS/Projector/github/tptest/venv/lib/python3.6/site-packages/typedparse/argparse.py", line 24, in parse
args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels