google/python-fire

Display dict of namedtuples

Open

#230 opened on 2020年3月3日

GitHub で見る
 (6 comments) (1 reaction) (0 assignees)Python (26,214 stars) (1,418 forks)batch import
enhancementhelp wanted

説明

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.

コントリビューターガイド

Display dict of namedtuples · google/python-fire#230 | Good First Issue