Type annotations for boto3.CodeGuruReviewer 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_codeguru_reviewer
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_codeguru_reviewer as codeguru_reviewer
from mypy_boto3_codeguru_reviewer import CodeGuruReviewerClient
# with these
from mypy_boto3 import codeguru_reviewer
from mypy_boto3.codeguru_reviewer import CodeGuruReviewerClient
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f685a23663fd8e3659bab380e51fddb4125c988a4a4601fe114e251e167ba568 |
|
MD5 | 7e60587373583ec15c0fa180ae06878c |
|
BLAKE2b-256 | 29eb74c27043c428274d9046606335dd661fb4d859b855948a0d5b5a3baec8a7 |
Hashes for mypy_boto3_codeguru_reviewer-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ee0bd37f19e1093a1c902ffc9db9bd05488c635ac9b7891b56af22f5a7cb37 |
|
MD5 | b84bd7c0e786a7515762f472c900cb21 |
|
BLAKE2b-256 | b2bef6ad7fe54b186fb18d8290964dd513da97de6495e57066e46848f6208d9e |