Stubgen generates reference to types.TracebackType
without importing types
#17037
Labels
types.TracebackType
without importing types
#17037
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
When stubgen generates annotations for
__exit__
, it referencestypes.TracebackType
without importingtypes
To Reproduce
Run stubgen on this file:
Expected Behavior
Actual Behavior
Notice that it uses
types.TracebackType
to annotatetraceback
, but doesn't add an import fortypes
.Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: