Skip to content

Display dict of namedtuples#684

Open
yoshibase wants to merge 2 commits into
google:masterfrom
yoshibase:fix/issue-230
Open

Display dict of namedtuples#684
yoshibase wants to merge 2 commits into
google:masterfrom
yoshibase:fix/issue-230

Conversation

@yoshibase

Copy link
Copy Markdown

Summary

Fixes #230

Fix

When Fire is invoked on a dict whose values are namedtuples, print all entries inline (like dict-of-dicts) instead of showing a help screen.

Tests

cd ../_upstream && python3 -m unittest fire.core_test.CoreTest.testPrintDictOfNamedTuples -v

Test plan

  • Local tests pass (see README in staging folder)

Treat dicts whose values are namedtuples as simple groups so Fire prints
them inline instead of showing a help screen. Fixes google#230.

Co-authored-by: Cursor <cursoragent@cursor.com>
@google-cla

google-cla Bot commented Jul 13, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display dict of namedtuples

1 participant