[Python-Dev] PEP 561 implemented and minor clarification (original) (raw)
Ivan Levkivskyi levkivskyi at gmail.com
Sun Apr 22 06:19:15 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 561 implemented and minor clarification
- Next message (by thread): [Python-Dev] python3.5.3: xmlrpc_net unit test fail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12 April 2018 at 09:59, Ethan Smith <ethan at ethanhs.me> wrote:
Hello,
I've updated PEP 561 to clarify that any installed stub package should supersede an installed inline package. In other words if there is: /global/site-packages/pkg/ /user/site-packages/pkg-stubs/ Even if pkg in the global site packages is found first and marks that it supports types, the stub package should supersede it. I also point to mypy's docs on its implementation of the PEP (which can be read about here: https://mypy.readthedocs.io/en/latest/installedpackages. html). The implementation has been merged into master and will be available in the 0.590 release. This clarification totally makes sense for me. I could easily imagine a scenario where are third party provides more advanced/precise/detailed types for a package that already supports typing. Also thanks for writing the implementation, hopefully, this PEP will be accepted soon and it will solve one of the major problems in typing ecosystem.
-- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180422/36e1ed4c/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 561 implemented and minor clarification
- Next message (by thread): [Python-Dev] python3.5.3: xmlrpc_net unit test fail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]