setuptools
setuptools copied to clipboard
`pkg_resources`: Expose the type of imports and re-exports
Summary of changes
- ~~Removed unused
resource_dirandresource_dir~~ #4260 - ~~Removed overriden
run_mainandrun_script~~ #4260 - ~~Moved declarations of
@_call_asidedefined globals closer to where they're defined. And afterResourceManager&WorkingSetto avoid forward reference issues~~ #4267 - ~~Typed the 3 globals set by
_declare_stateas notNone~~ #4258 - Statically exposed the dynamic imports using a
TYPE_CHECKINGblock and static imports
Works towards #2345 and a big step towards merging typeshed's pkg_resources stubs into setuptools
Pull Request Checklist
- [ ] Changes have tests (this is to help with type-checking checks)
- [ ] News fragment added in
newsfragments/. (See documentation for details)
Setting as draft to make it clear this isn't a priority to review. Will probably end up being the last pkg_resources PR for static typing.
Superseded by #4457 , thanks @jaraco !
Static typing issues caused by vendored packages can now also be fixed upstream