Type annotations for boto3.CodeGuruReviewer 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-codeguru-reviewer
Type annotations for boto3.CodeGuruReviewer 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906e25a74ca5b6677f3249ac3ad537ce1d62697bb6817b81d2c95cfa6a0c0d49 |
|
MD5 | 03b54c4c585a33457bb3f75f7bedf9c0 |
|
BLAKE2b-256 | 5141b7359a5ee6ee2199d18f6fed0711309778e92a6c68635ddfaeb4d7849ea4 |
Hashes for mypy_boto3_codeguru_reviewer-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8871d95d9ab9742f822c2c213f055e5f00d875253bce41dadfe159e814131c23 |
|
MD5 | 5c6b4004a8665762447693851197d178 |
|
BLAKE2b-256 | 5aa1896d43f28b448e9e3f670172a96b21b7b8d7ed62d94870921f5e5c61eb42 |