Type annotations for boto3.CodeGuruReviewer 1.14.50 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.50 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.50.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9db8275b8b726bf4a1941c584ca5e4b2d547a48296aad3abaa57ca63d94e60 |
|
MD5 | f5ea72dc32678018e4e0c02f974cd283 |
|
BLAKE2b-256 | 52cd0943cf2a3b0d01b34cb292dbf562361548a63b4e8611c2ebc1c34fa1ec74 |
Hashes for mypy_boto3_codeguru_reviewer-1.14.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fd6dbbe60ec252530f28f4a5de0d92cf1ce9386d3478fac3d3b9d43b263bc5 |
|
MD5 | 0d56497c90b3db4b85d86f5d4fd4f3b2 |
|
BLAKE2b-256 | 1ad947d921a73bf5b2fd79e1bd2199e2ca4b856633c5aa5f9208c7e79ceb8e5a |