-
-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I was having a look a this PR and decided to give it a try.
# In parsing_workout.py
class Dummy:
def __init__(self, dummy: float = None):
passThen execute
python parsing_workout.py --print_config > conf.yml
python parsing_workout.py --config conf.ymlI get the following error :
parsing_workout.py: error: Parser key "data.dummy": float() argument must be a string or a number, not 'NoneType'
Notably, this doesn't crash with IPython.
I think it would make sense to automatically add Optional to the type in those cases, WDYT?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request