pypa / setuptools

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

Generic typing for register methods in `pkg_resources` #4355

Closed Avasam closed 3 weeks ago

Avasam commented 1 month ago

Summary of changes

Review and merge after https://github.com/pypa/setuptools/pull/4246 This is an immediate follow-up but with more precise and complex typing. works towards step 3.2 of https://github.com/pypa/setuptools/issues/2345#issuecomment-1627561833

Once this #4391 and #4390 are merged, pkg_setuptools will be on par with Typeshed

Pull Request Checklist

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

Avasam commented 3 weeks ago

@abravalheri You can merge! Might get a conflict somewhere, but this wasn't included with another PR.