google/python-fire

Display dict of namedtuples

Aberta

#230 aberto em 3 de mar. de 2020

 (6 comentários) (1 reação) (0 responsável)Python (1.418 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (26.214 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador