Skip to content

Display dict of namedtuples#684

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

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>
@yoshibase

Copy link
Copy Markdown
Author

Pausing this PR for now: the cla/google check requires signing Google's CLA, and our contributor policy currently excludes repositories that require CLA signing. The fix remains prepared locally and can be resubmitted once CLA signing is feasible. Thank you for understanding.

@yoshibase yoshibase closed this Jul 16, 2026
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