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
Bug Report / To Reproduce
Ok so this is a weird one, and I've been completely unable to replicate it in an MRE. So here's the PR where this happened to us: pypa/setuptools#4726
To replicate, clone the setuptools repo, install the [core,type] extras, then change the start of setuptools/command/install.py's install.do_egg_install to:
setuptools\command\install.py:150: note: Revealed type is "setuptools.command.easy_install.easy_install"
Success: no issues found in 143 source files
On Python 3.12 & 3.13
setuptools\command\install.py:150: note: Revealed type is "setuptools.Command"
setuptools\command\install.py:166: error: Unexpected keyword argument "show_deprecation" for "run" of "Command" [call-arg]
Found 1 error in 1 file (checked 143 source files)
My first guess is this has something to do with distutils removal in 3.12, but the results I'm getting are still nonsensical and probably reveal a hidden bug in mypy.
Expected Behavior cmd should be of type setuptools.command.easy_install or alias easy_install_cls
Actual Behavior
cmd is of type setuptools.Command (superclass of setuptools.command.easy_install)
Bug Report / To Reproduce
Ok so this is a weird one, and I've been completely unable to replicate it in an MRE. So here's the PR where this happened to us: pypa/setuptools#4726
To replicate, clone the setuptools repo, install the
[core,type]
extras, then change the start ofsetuptools/command/install.py
'sinstall.do_egg_install
to:On Python 3.11
On Python 3.12 & 3.13
My first guess is this has something to do with distutils removal in 3.12, but the results I'm getting are still nonsensical and probably reveal a hidden bug in mypy.
Expected Behavior
cmd
should be of typesetuptools.command.easy_install
or aliaseasy_install_cls
Actual Behavior
cmd
is of typesetuptools.Command
(superclass ofsetuptools.command.easy_install
)Your Environment
python3.1X -m mypy .
mypy.ini
(and other config files): https://github.com/pypa/setuptools/blob/39179c1fcbd3509adebb4b379dd790f735c1ee69/mypy.iniThe text was updated successfully, but these errors were encountered: