boto3 stubs package
See original GitHub issueI made a package named boto3_type_annotations
that provides a way to get type hinting in IDEs for boto3
. I just got a pull request about supporting mypy that brought PEP 561 to my attention. I’m gonna start experimenting with this, but the PEP says:
Third parties seeking to distribute stub files are encouraged to contact the maintainer of the package about distribution alongside the package. If the maintainer does not wish to maintain or package stub files or type information inline, then a third party stub-only package can be created.
So, before I upload a boto3-stubs
package to PyPI, I figured I’d check with ya’ll. Personally, I don’t think it would make any sense to shove this into boto3
, but, you know, due diligence and all.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (3 by maintainers)
Top Results From Across the Web
boto3-stubs - PyPI
Type annotations for boto3 1.26.32 compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools. Generated by mypy-boto3-builder 7.12.0 ...
Read more >boto3-stubs documentation
Auto-generated documentation for boto3 type annotations package boto3-stubs. Generated by mypy-boto3-builder. How to install. VSCode extension. Add AWS Boto3 ...
Read more >Mypy boto3
Some files are generated by service post-install scripts, so pip does not fully remove packages. To properly uninstall boto3-stubs , use these commands:...
Read more >Typing/Reformatting/Autocomplete lags when stubs for boto3 ...
For anyone using boto3-stubs project and struggling with the poor performance, you can do this: After installation of boto3-stubs[ec2] and like packages, ...
Read more >boto/botostubs: Type stubs for botocore and boto3. **Note
botocore-stubs is the stubs-only package that provides type hints for botocore. Most of it is generated code. · botogen is the code generator...
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
I’ve been using the stuff @vemel provided (thank you!!) - though will this ever be first class in boto? It would make it so much more approachable when you’re floundering around in the darkest corners of the internet to figure out some weird boto thing.
@alliefitter thanks for
mypy_boto3_annotations
package. Sorry for deleting my PR formypy
support, but I found that changes are quite big. Could you please take a look at https://github.com/vemel/mypy_boto3 as it is based on your code. I did not modifyparsers.py
heaily, just splitted them for readability, addedDocstringParser
andboto3-stubs
package.Please let me know what you think.