Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print InspectError traceback in stubgen
walk_packages
when verbose …
…is specified (#18224) This change modifies `walk_packages` such that the full `ImporError` traceback is printed when a module cannot be imported. The goal is to provide the user with more context to debug the error. I implemented this change by mirroring existing behavior in `find_module_paths_using_imports`: https://github.com/python/mypy/blob/9405bfd9205ea369c11150907764fa46c03cb1f7/mypy/stubgen.py#L1522-L1529
- Loading branch information