Type annotations for boto3.CodeGuruReviewer 1.14.10 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.10 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.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a09519d77ced087a2266d9b42d56e38a233e3eeeb26df4e03e9cf920ac54f2cc |
|
MD5 | 31f3d909ac56c70f9713f05d7af0aa95 |
|
BLAKE2b-256 | 76899a2ab46b55354a417a5afe36dc0ba05aaae149c5a15d60f67481b2a59388 |
Hashes for mypy_boto3_codeguru_reviewer-1.14.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833c95b21d8d8f547037a076e28b27e4f2d6ba021b10db97381dd23246898775 |
|
MD5 | e2b0c758515395235e0264f454db2c1a |
|
BLAKE2b-256 | fe61d6ac1e8b4532f4be849fd2d6eca4012859554db0b636bb308974373459c8 |