Visitar URL original
PEP 561: Add partial stub section by ethanhs · Pull Request #653 · python/peps · GitHub
The Wayback Machine - https://web.archive.org/web/20210202075320/https://github.com/python/peps/pull/653
Skip to content
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

PEP 561: Add partial stub section #653

Merged
merged 3 commits into from May 17, 2018
Merged

PEP 561: Add partial stub section #653

merged 3 commits into from May 17, 2018

Conversation

@ethanhs
Copy link
Contributor

@ethanhs ethanhs commented May 16, 2018

No description provided.

ethanhs added 2 commits May 15, 2018
editors, packages can be "partial". This means modules not found in the stub
package SHOULD be searched for in the corresponding runtime package.

Type checkers should merge the stub package and runtime package directories.

This comment has been minimized.

@JelleZijlstra

JelleZijlstra May 16, 2018
Contributor

Is it also possible to delegate to another stub package later on the path?

This comment has been minimized.

@ethanhs

ethanhs May 16, 2018
Author Contributor

No, and theoretically you should never have another stub package later down the path, otherwise you are asking for problems.

This comment has been minimized.

@JelleZijlstra

JelleZijlstra May 16, 2018
Contributor

Why not? A possible use case could be a stub package that improves on one module within a package that has stubs in typeshed.

This comment has been minimized.

@ethanhs

ethanhs May 16, 2018
Author Contributor

Ah, I misunderstood. I thought you meant other installed stub packages. I don't particularly see this as critical. If you have an issue with typeshed modules, submit a fix. However, I don't particularly see why this interpretation is a bad thing either.

@gvanrossum @vlasovskikh I'd be interested in your thoughts on the issue above. I think I'm leaning toward yes, but I don't think there is a strong argument either way.

This comment has been minimized.

@vlasovskikh

vlasovskikh May 16, 2018
Member

@JelleZijlstra It could make sense to allow partial stubs to override some modules of packages defined in typeshed. Although I think that just contributing a fix to typeshed is a good option in this case as @ethanhs has mentioned.

Copy link
Member

@vlasovskikh vlasovskikh left a comment

I'm fine with the proposed changes.

Thank you @ethanhs and everyone involved!



Version History
===============

* 2018-05-015

This comment has been minimized.

@vlasovskikh

vlasovskikh May 16, 2018
Member

I believe it's 2018-05-15.

This comment has been minimized.

@ethanhs

ethanhs May 16, 2018
Author Contributor

Fixed, thank you!

@brettcannon
Copy link
Member

@brettcannon brettcannon commented May 17, 2018

@ethanhs is this ready to be merged?

@ethanhs
Copy link
Contributor Author

@ethanhs ethanhs commented May 17, 2018

@brettcannon Yes it is, thank you!

@brettcannon brettcannon merged commit f630c74 into python:master May 17, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants