Make mimesis PEP561 compatible
See original GitHub issueWhat is PEP561? https://www.python.org/dev/peps/pep-0561/
It is a way to ship types together with the code itself.
If the package is PEP561 compatible, then mypy
will import types from it and use it together with user defined ones. Otherwise, everything will be Any
.
So, our end-users might benefit from using our library with mypy
.
What needs to be done?
- Create
py.typed
file: https://github.com/dry-python/returns/blob/master/returns/py.typed - Make sure it is bundled together with other python files
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Is there a best practice to make a package PEP-561 compliant?
Is there a best practice to make a package PEP-561 compliant? · Run stubgen to create stub files. · Create py.typed files in...
Read more >mimesis - PyPI
Python compatibility. Mimesis supports Python 3.8 (also PyPy 3.8), 3.9, and 3.10. The Mimesis 4.1.3 is the last to support Python 3.6 and...
Read more >PEP 561 – Distributing and Packaging Type Information
This PEP recognizes three types of packages that users of typing wish to create: The package maintainer would like to add type information ......
Read more >Typing Stubs and PEP 561 compatibility · Issue #28142 - GitHub
Let's make sure that we track the two use cases of typing: Typing for pandas developers - making sure that our typing of...
Read more >Mimesis Documentation - Read the Docs
Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Then we can close this issue. Thanks a lot!
I guess so, I have never done it with
MANIFEST
s,poetry
handles all these things for me: https://github.com/dry-python/returns/blob/master/pyproject.toml