Type annotations for boto3.CodeGuruReviewer 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.14.0 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb6b454f9bde120085aa4b29e135f522be35a6ae45b391a2782a0edc70b40e1 |
|
MD5 | ec1a49d03bad33f62a8d17f92eac8709 |
|
BLAKE2b-256 | a218d409f8be1cb766f5f4118c531098262c2296e060a0d30bd5657d6405f801 |
Hashes for mypy_boto3_codeguru_reviewer-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1566738f1aa3080d530bf1a60a44cf66463c14f2f6b4dd65e1b3a1e90ae616 |
|
MD5 | 5f571584a0dc994ae53ef7056984ecb9 |
|
BLAKE2b-256 | 0374bae68e1a3157e6c69ddd52465ea31c1f91a66af053b25aaad2ff4e6ed7f8 |