Type annotations for boto3.ServerlessApplicationRepository 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-serverlessrepo
Type annotations for boto3.ServerlessApplicationRepository 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 ServerlessApplicationRepository
service.
python -m pip install boto3-stubs[serverlessrepo]
Use boto3
with mypy_boto3_serverlessrepo
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_serverlessrepo import ServerlessApplicationRepositoryClient
# Now mypy can check if your code is valid.
client: ServerlessApplicationRepositoryClient = boto3.client("serverlessrepo")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ServerlessApplicationRepositoryClient = session.client("serverlessrepo")
# Annotated paginators are included as well
import mypy_boto3_serverlessrepo.paginator as serverlessrepo_paginators
list_application_dependencies_paginator: serverlessrepo_paginators.ListApplicationDependenciesPaginator = client.get_paginator("list_application_dependencies")
list_application_versions_paginator: serverlessrepo_paginators.ListApplicationVersionsPaginator = client.get_paginator("list_application_versions")
list_applications_paginator: serverlessrepo_paginators.ListApplicationsPaginator = client.get_paginator("list_applications")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_serverlessrepo
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("serverlessrepo")
session_client = boto3.Session().client("serverlessrepo")
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-serverlessrepo-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d35cfe175070a0063c114eafe2b588209510e65d3a376dc20e1fc707d5295c6 |
|
MD5 | f64fe3fc6e5514ed19a7d39945921eef |
|
BLAKE2b-256 | ec8f174bfe071c3346fad7ed9657610efff29dd7ee8765d78b26e86edf93034a |
Hashes for mypy_boto3_serverlessrepo-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d67bfea590401b0d2d0070d130b0c11a54e68ead1cb1185875e67d53d980671 |
|
MD5 | 7b62867e7b605cd08f39a2305fc0f720 |
|
BLAKE2b-256 | 98d15e50720d821502f1e23a5a4cc33ce9004df96c7e4f9b169722e5607c3feb |