Type annotations for boto3.Transfer 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-transfer
Type annotations for boto3.Transfer 1.14.0 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 Transfer
service.
python -m pip install boto3-stubs[transfer]
Use boto3
with mypy_boto3_transfer
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_transfer import TransferClient
# Now mypy can check if your code is valid.
client: TransferClient = boto3.client("transfer")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: TransferClient = session.client("transfer")
# Annotated paginators are included as well
import mypy_boto3_transfer.paginator as transfer_paginators
list_servers_paginator: transfer_paginators.ListServersPaginator = client.get_paginator("list_servers")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_transfer
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("transfer")
session_client = boto3.Session().client("transfer")
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-transfer-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acc7eb6aa3d8c71729d8e568a026f8b388723ca90568d6f08fc055a299352ea |
|
MD5 | e66550d26779abf6a0b311ca436605f8 |
|
BLAKE2b-256 | 0a83600367d16eeb10e169fb9eb55cbf16e8bc0776a30e49418aaf81ba83b6db |
Hashes for mypy_boto3_transfer-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d088efe7318c17800c56f221f51f3ced4ce58b0c6e3ca97f99ff288806116b00 |
|
MD5 | aaf8c40a542dacdc1f0dc8bb86db905c |
|
BLAKE2b-256 | 746e64dc6715ca45bcc5b3f89f3db01b395434571f247b69ec100bb977006a33 |