Type annotations for boto3.CodeGuruReviewer 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
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]
Use boto3
with mypy_boto3_codeguru_reviewer
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_codeguru_reviewer import CodeGuruReviewerClient
# Now mypy can check if your code is valid.
client: CodeGuruReviewerClient = boto3.client("codeguru-reviewer")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeGuruReviewerClient = session.client("codeguru-reviewer")
# Annotated paginators are included as well
import mypy_boto3_codeguru_reviewer.paginator as codeguru_reviewer_paginators
list_repository_associations_paginator: codeguru_reviewer_paginators.ListRepositoryAssociationsPaginator = client.get_paginator("list_repository_associations")
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
import boto3
# 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.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c14470e076bdd41aa7b468a62aebf1c368041fe9be3204a00777f3235a3ea9 |
|
MD5 | 44737a393370faff41a0d5d8d431c8e7 |
|
BLAKE2b-256 | 3c3c8a224088751e1e12351432812a7fbf44f6a8b030b73328eae6cf740a902a |
Hashes for mypy_boto3_codeguru_reviewer-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea78267e1e85f80afe2c37407414cf24ab4e3df776108361ea98809d70a9e02b |
|
MD5 | 6988d837ecb372297e11482063a9eb97 |
|
BLAKE2b-256 | 129bcf6496e334625fc69f665c18b6bb8678c6b3c665f7ec39f7acf0e65f0120 |