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.

貢獻者指南