-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
stubtest crash when a referenced module is a DLL #13822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related, very similar error in stubgen as well: Results in: |
This feels like a CPython bug, since stubtest is just calling Basically, inspect doesn't try to find a source file if the object's Where should this be fixed?
|
Crash Report
stubtest crashes when a referenced module is a DLL, as it seemingly tries to parse the
.dll
's content as text.Traceback
To Reproduce
The easiest way to reproduce would be to use the pywin32 stubs from typeshed as an example. It has references to
pywintypes39.dll
andpythoncom39.dll
. Make sure thatMETADATA.toml
has:python .\tests\stubtest_third_party.py pywin32
Your Environment
mypy.ini
(and other config files): (see above)The text was updated successfully, but these errors were encountered: