Type annotations for boto3.CodeGuruReviewer 1.14.6 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.6 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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceead9035e52c0536555af339bb7af6d8ec64be7ddc9cc0e7ecabd1f1de8b189 |
|
MD5 | ae16b9deb9b57728e940698537db92bc |
|
BLAKE2b-256 | 4cae73a13210a1666f061609b3ac1933ade9fb262d37d78bf0ba94787e525beb |
Hashes for mypy_boto3_codeguru_reviewer-1.14.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2acaac1bcab22fde8b94bde9637d2dd8c693cef17cdfe1f863b37cc34dacea |
|
MD5 | 621fd35bb0ff22d1d0f5a2623f16884c |
|
BLAKE2b-256 | 10f07df46218a20268f9b5fe254fb5061b4d2a2619cd27d2040d21baafe6ebed |