Git Product home page Git Product logo

Comments (3)

vemel avatar vemel commented on June 5, 2024

Hello! Looks like index auto-generation does not work because packages are installed in a different order. It will only work if mypy-boto3 is installed before mypy-boto3-batch

I am planning to remove auto-generation, because post-install way is hacky and does not allow me to use wheels. So it is always a good idea to run python -m mypy_boto3 to generate index.

Let me know if you have any suggestions on how to make installation process easier. Thank you.

from mypy_boto3_builder.

vemel avatar vemel commented on June 5, 2024

Hello. I am going to release builder v2, and main idea is to make mypy_boto3 package and dynamic type annotations completely optional. Some changeswere already done in the latest release, so you can start using this package in a recommended way for v2:

# client and resource annotations
from mypy_boto3_batch import BatchClient, BatchServiceResource 

# waiters and paginaators
from mypy_boto3_batch.waiter as batch_waiters
from mypy_boto3_batch.paginator as batch_paginators

Automatic generation is now required only if you want type discovery for boto3.client and boto3.resource functions. If you plan to provide explicit annotations for these functions, you do not need mypy_boto3

Remember that only mypy supports boto3.client/resource generated annotations. PyCharm for some reason consumes too much RAM for those, and VSCode does not support them at all. So, explicit annotations is a good idea.

from mypy_boto3_builder.

vemel avatar vemel commented on June 5, 2024

Closing this issue as it is outdated due to v 2 release. Please update to boto3_stubs>=1.13.25.0. Thank you for the report!

from mypy_boto3_builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.