google/python-fire

Display dict of namedtuples

开放

#230 创建于 2020年3月3日

 (6 条评论) (1 个反应) (0 位负责人)Python (1,418 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (26,214 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南