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
c0372cc appears to have broken stubtest if you use it with --custom-typeshed-dir. Attempting to use stubtest with --custom-typeshed-dir pointing to a local clone of typeshed will result in the following message (or something like it):
error: not checking stubs due to failed mypy compile:
mypy: "..\typeshed\stdlib\builtins.pyi" shadows library module "builtins"
note: A user-defined top-level module with name "builtins" is not supported
Notes on the bug:
I haven't been able to reproduce this using "mypy core", only with stubtest.
The bug exists on both mypy master and mypy release-0.980.
The bug exists if you use a relative path or an absolute path to point to a clone of typeshed.
The bug exists if you use the --check-typeshed flag, as well as if you don't.
Bug Report
c0372cc appears to have broken stubtest if you use it with
--custom-typeshed-dir. Attempting to use stubtest with--custom-typeshed-dirpointing to a local clone of typeshed will result in the following message (or something like it):Notes on the bug:
masterand mypyrelease-0.980.--check-typeshedflag, as well as if you don't.Cc. @ilevkivskyi, @jhance, @hauntsaninja
To Reproduce
Any of the following will reproduce:
(venv) python -m mypy.stubtest typed_ast --custom-typeshed-dir relative/path/to/typeshed(venv) python -m mypy.stubtest typed_ast --custom-typeshed-dir absolute/path/to/typeshed(venv) python -m mypy.stubtest --check-typeshed --custom-typeshed-dir relative/path/to/typeshed(venv) python -m mypy.stubtest --check-typeshed --custom-typeshed-dir absolute/path/to/typeshedExpected Behavior
Stubtest with
--custom-typeshed-dirwould work on mypy master.Actual Behavior
Stubtest with
--custom-typeshed-dirdid not work on mypy master.Your Environment