pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.54k stars 1.19k forks source link

Merge typeshed return annotations #4744

Open Avasam opened 2 weeks ago

Avasam commented 2 weeks ago

Summary of changes

Based on https://github.com/pypa/setuptools/pull/4736, so merge that one first.

Step 6.2 of https://github.com/pypa/setuptools/issues/2345#issuecomment-1627561833

This PR still doesn't do initialize_options as those have their own set of issues (and knowing they return None isn't that helpful to begin with), as well as complex Command-based overloads.

This will produce many type issues that need to be resolved. I'll do that in other PRs and keep this as draft in the mean time.

Pull Request Checklist

[PR docs]: https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request