google/python-fire

Display dict of namedtuples

Open

#230 建立於 2020年3月3日

在 GitHub 查看
 (6 留言) (1 反應) (0 負責人)Python (1,418 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (26,214 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南