Type annotations for boto3.CodeGuruProfiler 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-codeguruprofiler
Type annotations for boto3.CodeGuruProfiler 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 CodeGuruProfiler
service.
python -m pip install boto3-stubs[codeguruprofiler]
Use boto3
with mypy_boto3_codeguruprofiler
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_codeguruprofiler import CodeGuruProfilerClient
# Now mypy can check if your code is valid.
client: CodeGuruProfilerClient = boto3.client("codeguruprofiler")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeGuruProfilerClient = session.client("codeguruprofiler")
# Annotated paginators are included as well
import mypy_boto3_codeguruprofiler.paginator as codeguruprofiler_paginators
list_profile_times_paginator: codeguruprofiler_paginators.ListProfileTimesPaginator = client.get_paginator("list_profile_times")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_codeguruprofiler
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("codeguruprofiler")
session_client = boto3.Session().client("codeguruprofiler")
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-codeguruprofiler-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a2231af1f30340fdd49de52ab30370ffd6c375332935232c4ddd53dcd84ace |
|
MD5 | 525e23dfe0581f1bcb31f384d9aed445 |
|
BLAKE2b-256 | 6bd73da1ffed197a36787ed663ba05c52ede4a9a8ffa94d4dd83f699a8fb451d |
Hashes for mypy_boto3_codeguruprofiler-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f55d55e1c8863fa7fe5ceda2d902572831eb1f03e6c162c8526c687a96fb731 |
|
MD5 | e67c000c9099f81c6e1a96fe5308767d |
|
BLAKE2b-256 | 39ec274ba0d02e48cb5c1e9bfe646f93041b1633f8689278df67a3365e36f69f |