boto3-type-annotations-with-docs

raw JSON →
0.3.1 verified Fri May 01 auth: no python

Provides type annotations (stubs) for boto3 to enable IDE autocompletion and static type checking. Version 0.3.1 is the latest release. The project appears maintained with irregular cadence.

pip install boto3-type-annotations-with-docs
error ModuleNotFoundError: No module named 'boto3_type_annotations_with_docs'
cause The package is not installed or installed in a different environment.
fix
Run 'pip install boto3-type-annotations-with-docs' and verify installation with 'pip list | grep boto3-type'.
error ImportError: cannot import name '...' from 'boto3_type_annotations_with_docs'
cause Missing submodule or wrong import path.
fix
Do not import submodules from this package; only import the top-level module: 'import boto3_type_annotations_with_docs'.
gotcha You must explicitly import boto3_type_annotations_with_docs in your code for type hints to work. Simply installing the package is insufficient.
fix Add 'import boto3_type_annotations_with_docs' after importing boto3.
deprecated The official AWS stubs are provided by the 'mypy-boto3' package. This package is a third-party fork and may not be maintained as actively.
fix Consider using 'mypy-boto3' for official support and more comprehensive stubs.

Import the package after boto3 to activate type stubs. No further configuration needed.

import boto3
import boto3_type_annotations_with_docs  # Must import to enable type annotations

client = boto3.client('s3', region_name='us-east-1')
# Now client will have type hints in IDEs that support them