Fix Hydra 1.1 support (argparse description)

This commit is contained in:
allegroai 2021-02-27 23:51:06 +02:00
parent ae6caf4404
commit e24a421457

View File

@ -105,7 +105,7 @@ class _Arguments(object):
} }
desc_ = { desc_ = {
a.dest: a.help or ( a.dest: str(a.help) or (
'{}default: {}'.format('choices: {}, '.format(a.choices) if a.choices else '', '{}default: {}'.format('choices: {}, '.format(a.choices) if a.choices else '',
defaults_.get(a.dest, ''))) defaults_.get(a.dest, '')))
for a in actions} for a in actions}