python / typing-council

Decisions by the Python Typing Council
41 stars 3 forks source link

Typing spec update revising typeshed's position in the module resolution order #30

Closed AlexWaygood closed 2 months ago

AlexWaygood commented 2 months ago

I'd like to request that the Typing Council consider a proposed revision of the "module resolution order" specified by the typing spec at https://typing.readthedocs.io/en/latest/spec/distributing.html#import-resolution-ordering. The revision moves typeshed's standard-library stubs higher in the resolution order, in order to more accurately emulate Python's runtime semantics.

Links to PR & Discussion

The PR can be found at https://github.com/python/typing/pull/1772. A more detailed description of the changes made can be found in the PR description.

A full explanation of the motivations for the proposed change can be found in the dedicated Discourse thread. There appear to have been no significant objections to the proposal so far.

TC Sign-off

Current Type Checker Behaviors

JelleZijlstra commented 2 months ago

It's been a week and everyone signed off, this is accepted. Thank you for pushing this change through!

AlexWaygood commented 2 months ago

Thank you all for your consideration!