Type annotations for boto3.S3Control 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-s3control
Type annotations for boto3.S3Control 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for S3Control
service.
python -m pip install boto3-stubs[s3control]
Use boto3
with mypy_boto3_s3control
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_s3control import S3ControlClient
# Now mypy can check if your code is valid.
client: S3ControlClient = boto3.client("s3control")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: S3ControlClient = session.client("s3control")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_s3control
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("s3control")
session_client = boto3.Session().client("s3control")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-s3control-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a54bbd396935957d1bbf81a1659ce7c34b48d9a031a9e330c3ae808f14c1d228 |
|
MD5 | bfc88c3262852d78506072b1bc4c2de5 |
|
BLAKE2b-256 | 25750d5abf372c733103eacee55836bcbcfd8cb11065b031c8a5441421552e80 |
Hashes for mypy_boto3_s3control-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9fa54ffbab7882b01c0223ab4d3934544fdb057a2d8d4bfeb7b15b9494043f9 |
|
MD5 | 0be5100bb9ed7f667321dcb7de13fb36 |
|
BLAKE2b-256 | 6e31ba647c6010a03f8e3855c9f1789ef427ab2afafdbb3770edc42aa9a59d75 |