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
{{ message }}
Repository navigation
types-setuptools 80.9.0.20251223 triggers spurious type error on package_data in setup.py #15220
changed the title [-]types-setuptools 80.9.0.20251223 triggers spurious type error on package_data[/-][+]types-setuptools 80.9.0.20251223 triggers spurious type error on package_data in setup.py[/+]on Jan 5, 2026
mypy 0.991 is ancient (over three years old). We only guarantee type packages to work with the latest type checker versions at the time a package is released. (The actual versions are part of the type package's description, in the case of types-setuptools 80.9.0.20251223 that's mypy 1.18.2.) I just checked your example with mypy 1.19.1, and there are no type errors.
In this particular case, I expect the problem is a conflict between the setuptools types and the stdlib that was shipped with mypy 0.991.
mypy 0.991 is ancient (over three years old). We only guarantee type packages to work with the latest type checker versions at the time a package is released. (The actual versions are part of the type package's description, in the case of types-setuptools 80.9.0.20251223 that's mypy 1.18.2.) I just checked your example with mypy 1.19.1, and there are no type errors.
In this particular case, I expect the problem is a conflict between the setuptools types and the stdlib that was shipped with mypy 0.991.
Thanks for the feedback.
Makes sense, updating the mypy version does solve the issue (while bringing a few new actual errors).
We'll be updating our mypy linters to a more recent version.
Sorry we didn't check the compatibility requirements.
Activity
[-]types-setuptools 80.9.0.20251223 triggers spurious type error on package_data[/-][+]types-setuptools 80.9.0.20251223 triggers spurious type error on package_data in setup.py[/+]Fix mypy pre-commit hook by refreshing types-setuptools cache
Fix mypy pre-commit hook by adding type ignores for types-setuptools bug
Fix mypy pre-commit hook by adding type ignores for types-setuptools bug
srittau commentedon Jan 6, 2026
mypy 0.991 is ancient (over three years old). We only guarantee type packages to work with the latest type checker versions at the time a package is released. (The actual versions are part of the type package's description, in the case of types-setuptools 80.9.0.20251223 that's mypy 1.18.2.) I just checked your example with mypy 1.19.1, and there are no type errors.
In this particular case, I expect the problem is a conflict between the setuptools types and the stdlib that was shipped with mypy 0.991.
DrPyser commentedon Jan 7, 2026
Thanks for the feedback.
Makes sense, updating the mypy version does solve the issue (while bringing a few new actual errors).
We'll be updating our mypy linters to a more recent version.
Sorry we didn't check the compatibility requirements.