Object info helper for help output
★ 0.0 (0 ratings)25 min0 engineers solved this
Your assignment
This repository is a library that turns ordinary Python functions, classes and objects into command-line interfaces. Callers pass any object to the entry point and the library works out its arguments, prints help text and runs the matching call. The fire/inspectutils.py module holds the introspection helpers: argument spec extraction, namedtuple detection, and Info(), which returns a dict with the type name, string form, docstring, source file and line for a component. Info() uses IPython's oinspect.Inspector when that package is installed and falls back to a simpler built-in path otherwise. The help and completion code in fire/helptext.py and fire/core.py calls Info() for every component it documents. Tests live beside each module as *_test.py files and use the test_components module for sample objects.
What the team is seeing
When a user asks the tool for help on certain objects, the help screen fails and nothing useful is displayed. Users see an error page instead of the description they expected. It happens for some objects but not all of them.
Acceptance checks 1
- Check 1
Discussion is locked — log in and complete this problem to join the discussion and rate your experience.
