Problem
When a type isn't found in the provider registry, the error message offers no guidance:
Provider of type <class 'Database'> is not registered in providers registry.
Proposed Solution
When a type lookup fails, scan registered providers to generate actionable hints:
- Is the type registered but at a different scope than the resolving container? → "Try resolving from a container with scope X"
- Is a parent class or subclass of the requested type registered? → "Did you mean ConcreteDatabase?"
- Is the type name similar to a registered type? → typo detection
Append hints to the error message.
Impact
Reduces time-to-fix for common wiring mistakes from minutes to seconds.
Complexity
Medium — touches providers_registry.py and errors.py.
Problem
When a type isn't found in the provider registry, the error message offers no guidance:
Proposed Solution
When a type lookup fails, scan registered providers to generate actionable hints:
Append hints to the error message.
Impact
Reduces time-to-fix for common wiring mistakes from minutes to seconds.
Complexity
Medium — touches
providers_registry.pyanderrors.py.