Skip to content

Commit

Permalink
Update argparse_config.py
Browse files Browse the repository at this point in the history
Don't break existing codes
  • Loading branch information
JeanKossaifi authored Apr 30, 2024
1 parent 836382b commit 46394af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/configmypy/argparse_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def __init__(self, infer_types="fuzzy", overwrite_nested_config=False, **additio
self.additional_config = Bunch(additional_config)
if infer_types in [False, "fuzzy", "strict"]:
self.infer_types = infer_types
elif infer_types:
# Backwards compatibility
self.infer_types = 'strict'
else:
raise ArgumentError("Error: infer_types only takes values False, \'fuzzy\', \'strict\'")
self.overwrite_nested_config = overwrite_nested_config
Expand Down

0 comments on commit 46394af

Please sign in to comment.