Skip to content

PEP 561: Clarify ordering of module resolution #807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2018
Merged

PEP 561: Clarify ordering of module resolution #807

merged 1 commit into from
Oct 12, 2018

Conversation

emmatyping
Copy link
Member

As brought up in python/mypy#5520.

cc @gvanrossum

@gvanrossum gvanrossum merged commit c509ce2 into python:master Oct 12, 2018
@emmatyping emmatyping deleted the orderpep561 branch October 12, 2018 03:37
@sproshev
Copy link

@ethanhs If package is distributed with stubs (e.g. attr: __init__.py and __init__.pyi), what category should be used from Module Resolution Order for it?

@gvanrossum
Copy link
Member

For any .py file, including __init__.py, if there is a corresponding .pyi file in the same directory, that .pyi is used exclusively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants