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
The way I ran into this was that I wanted to be sure all Python code we wrote (at work) was getting linted, and didn't do anything specific to avoid linting setup.py.
However wearing another hat - as a (somewhat emeritus) maintainer of pbr, there setuptools stubs would be directly and meaningfully useful, because pbr itself makes extensive use of the setuptools APIs.
The reason there's no stub for setuptools is that nobody has contributed one, and the reason nobody has contributed one is probably that type checking setup.py is not that useful for most people (as Guido says).
We'd likely accept a PR adding stubs for setuptools though.
We are closing all third-party stub requests issues without recent activity. We still welcome pull requests that add these to typeshed, although distributing the stubs with the the third-party package itself is preferable.
Activity
gvanrossum commentedon May 29, 2018
rbtcollins commentedon May 29, 2018
The way I ran into this was that I wanted to be sure all Python code we wrote (at work) was getting linted, and didn't do anything specific to avoid linting setup.py.
However wearing another hat - as a (somewhat emeritus) maintainer of pbr, there setuptools stubs would be directly and meaningfully useful, because pbr itself makes extensive use of the setuptools APIs.
JelleZijlstra commentedon May 29, 2018
The reason there's no stub for setuptools is that nobody has contributed one, and the reason nobody has contributed one is probably that type checking setup.py is not that useful for most people (as Guido says).
We'd likely accept a PR adding stubs for setuptools though.
srittau commentedon Aug 26, 2020
We are closing all third-party stub requests issues without recent activity. We still welcome pull requests that add these to typeshed, although distributing the stubs with the the third-party package itself is preferable.