question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

boto3 stubs package

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chris-ericksoncommented, Sep 4, 2020

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.

1reaction
vemelcommented, Nov 22, 2019

@alliefitter thanks for mypy_boto3_annotations package. Sorry for deleting my PR for mypy 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 modify parsers.py heaily, just splitted them for readability, added DocstringParser and boto3-stubs package.

Please let me know what you think.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found