Closed cruisen closed 1 year ago
MetavarTypeHelpFormatter is part of argparse
MetavarTypeHelpFormatter
argparse
However MetavarTypeHelpFormatter is not available in ConfigArgParse
ConfigArgParse
It actually fails on import: ImportError: cannot import name 'MetavarTypeHelpFormatter' from 'configargparse'
ImportError: cannot import name 'MetavarTypeHelpFormatter' from 'configargparse'
AttributeError: 'NoneType' object has no attribute '__name__'
This was an issue on my misunderstanding. Hence a user error.
Fix is:
from argparse import MetavarTypeHelpFormatter
-> Closing the issue.
Missing Formater
MetavarTypeHelpFormatter
is part ofargparse
Error
However
MetavarTypeHelpFormatter
is not available inConfigArgParse
It actually fails on import:
ImportError: cannot import name 'MetavarTypeHelpFormatter' from 'configargparse'
PR wanted?
Note
argparse
itself. It fails ifMetavarTypeHelpFormatter
is used and an argument does not have an type argument:AttributeError: 'NoneType' object has no attribute '__name__'