You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 561: Clarify the rules for extension only packages #2318
PEP-0561 does not mention extension packages, packages that consist of just an .so file. Given that PEP-484 mentions extension modules as a use case for stub files, should PEP-561 make it more clear what the ideal layout of an extension only package is?
It appears to be valid to have a package structure like the following:
We rarely update Accepted PEPs -- this might be better to add to typing documentation. Pinging @ethanhs as author and @JelleZijlstra as a typing ecosytem expert for where the best place to put this information would be (CPython typing docs, python/typing docs, etc).
This PEP does not support distributing typing information as part of module-only distributions .;.. The single-file module should be refactored into a package and indicate that the package supports typing as described above.
So I think your layout is correct. I think this could be clarified in the python/typing docs.
Yes, an issue on the PEPs repo isn't the right place to discuss this. I think we can put it in https://typing.readthedocs.io/en/latest/ (still under construction), so feel free to open an issue over at github.com/python/typing.
changed the title [-]PEP-561: Clarify the rules for extension only packages.[/-][+]PEP 561: Clarify the rules for extension only packages.[/+]on Feb 15, 2022
changed the title [-]PEP 561: Clarify the rules for extension only packages.[/-][+]PEP 561: Clarify the rules for extension only packages[/+]on Feb 15, 2022
Activity
AA-Turner commentedon Feb 9, 2022
We rarely update Accepted PEPs -- this might be better to add to typing documentation. Pinging @ethanhs as author and @JelleZijlstra as a typing ecosytem expert for where the best place to put this information would be (CPython typing docs,
python/typingdocs, etc).A
emmatyping commentedon Feb 9, 2022
PEP 561 does say
So I think your layout is correct. I think this could be clarified in the
python/typingdocs.JelleZijlstra commentedon Feb 9, 2022
Yes, an issue on the PEPs repo isn't the right place to discuss this. I think we can put it in https://typing.readthedocs.io/en/latest/ (still under construction), so feel free to open an issue over at github.com/python/typing.
AWhetter commentedon Feb 10, 2022
I've opened an issue with typing, which is linked above. Thank you for the help everyone!
[-]PEP-561: Clarify the rules for extension only packages.[/-][+]PEP 561: Clarify the rules for extension only packages.[/+][-]PEP 561: Clarify the rules for extension only packages.[/-][+]PEP 561: Clarify the rules for extension only packages[/+]