Type annotations for boto3.CodeGuruReviewer 1.14.31 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.31 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for CodeGuruReviewer
service.
python -m pip install boto3-stubs[codeguru-reviewer]
How to use
Client annotations
CodeGuruReviewerClient
provides annotations for boto3.client("codeguru-reviewer")
.
import boto3
from mypy_boto3_codeguru_reviewer import CodeGuruReviewerClient
from mypy_boto3_codeguru_reviewer.paginator import ListRepositoryAssociationsPaginator
from mypy_boto3_codeguru_reviewer.type_defs import CodeCommitRepositoryTypeDef, ...
client: CodeGuruReviewerClient = boto3.client("codeguru-reviewer")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeGuruReviewerClient = session.client("codeguru-reviewer")
Paginators annotations
mypy_boto3_codeguru_reviewer.paginator
module contains type annotations for all paginators.
client: CodeGuruReviewerClient = boto3.client("codeguru-reviewer")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_repository_associations_paginator: ListRepositoryAssociationsPaginator = client.get_paginator("list_repository_associations")
Typed dictionations
mypy_boto3_codeguru_reviewer.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> CodeCommitRepositoryTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_codeguru_reviewer
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
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("codeguru-reviewer")
session_client = boto3.Session().client("codeguru-reviewer")
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-codeguru-reviewer-1.14.31.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668a83e72fae9f201eb7683ca34fec5671b7450cb6d03c64bd355c7a9953ffc6 |
|
MD5 | 4be5bdbbe990be64e8d956337a97687a |
|
BLAKE2b-256 | 9876e006a447c2d9518ef4b68c6db1ef712ceb13740a6d03f252c9bd35ca8083 |
Hashes for mypy_boto3_codeguru_reviewer-1.14.31.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a01d3a9bf1bba4479fbda815de60ad2eed0508992a210cf4f30779cb5759ed8 |
|
MD5 | 77bb74056095216fe3a8df10858cb970 |
|
BLAKE2b-256 | 1a696f02c2100c65b11c1c2e3b31d2f5b6e0468a7f1e1e80a972839cdd3dd3e5 |