You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_LOGGER.warning(f"Failed guarded type import with {exc!r}")
I changed that log to also print guarded_code and it helped a lot. But I really think it should reraise the exception with the guarded_code and then catch and log it here with additional context:
Warnings/errors with generic messages do not provide context for what in the code caused the error.
Specifically, I ran into it here:
sphinx-autodoc-typehints/src/sphinx_autodoc_typehints/__init__.py
Line 343 in bf27bef
I changed that log to also print
guarded_code
and it helped a lot. But I really think it should reraise the exception with the guarded_code and then catch and log it here with additional context:sphinx-autodoc-typehints/src/sphinx_autodoc_typehints/__init__.py
Line 347 in bf27bef
The text was updated successfully, but these errors were encountered: