google/python-fire

Display dict of namedtuples

Aperta

#230 aperta il 3 mar 2020

 (6 commenti) (1 reazione) (0 assegnatari)Python (1418 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (26.214 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Fire nicely prints a dict of dicts using one line per inner dict. When I try to do the same with dict of namedtuples (which otherwise behave like dicts after #161), I just get a help page listing all the dict keys. When I specify a dict key, then that namedtuple is printed. I would prefer all namedtuples in the dict to be printed when no key is specified.

Guida contributor