Type annotations for boto3.CodeGuruReviewer 1.14.27 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.27 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.27.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d61713a4efb021f31be95c8b97e746fa7ec730060991d74d0de3841ce7a9e48 |
|
MD5 | b004d2022266e31fba711dd0336601af |
|
BLAKE2b-256 | 1de41574d342bb0ae533623145a412f48f9d29bc92401174a6f6e401e1a7315c |
Hashes for mypy_boto3_codeguru_reviewer-1.14.27.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6de0e1df5359e1d14b4f45deb6eb09b789ced8019d52dcd96c5f0f18f4fae893 |
|
MD5 | e39070f1a1deaf4b6dfa482847a8c272 |
|
BLAKE2b-256 | b9652cec2db810c0a4007205218ad9fc0ae09a280114bc164221d2b008c74a34 |