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

Update dynamic module imports in `pkg_resources` to direct static imports & fix attribute error #4348

Closed Avasam closed 1 month ago

Avasam commented 1 month ago

Summary of changes

Update dynamic module imports in pkg_resources to direct static imports as per https://github.com/pypa/setuptools/pull/4330/files#r1582361952

This also fixes an attribute error that was spotted thanks to the mypy config change.

Pull Request Checklist

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