PEP 561: Add partial stub section #653
Conversation
| 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. |
JelleZijlstra
May 16, 2018
Contributor
Is it also possible to delegate to another stub package later on the path?
Is it also possible to delegate to another stub package later on the path?
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.
No, and theoretically you should never have another stub package later down the path, otherwise you are asking for problems.
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.
Why not? A possible use case could be a stub package that improves on one module within a package that has stubs in typeshed.
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.
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.
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.
@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.
|
I'm fine with the proposed changes. Thank you @ethanhs and everyone involved! |
|
|
||
|
|
||
| Version History | ||
| =============== | ||
|
|
||
| * 2018-05-015 |
vlasovskikh
May 16, 2018
Member
I believe it's 2018-05-15.
I believe it's 2018-05-15.
ethanhs
May 16, 2018
Author
Contributor
Fixed, thank you!
Fixed, thank you!
|
@ethanhs is this ready to be merged? |
|
@brettcannon Yes it is, thank you! |


No description provided.