Type annotations for boto3.CodeStarNotifications 1.13.26 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-codestar-notifications
Type annotations for boto3.CodeStarNotifications 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 CodeStarNotifications
service.
python -m pip install boto3-stubs[codestar-notifications]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_codestar_notifications
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_codestar_notifications import CodeStarNotificationsClient
# Now mypy can check if your code is valid.
client: CodeStarNotificationsClient = boto3.client("codestar-notifications")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeStarNotificationsClient = session.client("codestar-notifications")
# Annotated paginators are included as well
import mypy_boto3_codestar_notifications.paginator as codestar_notifications_paginators
list_event_types_paginator: codestar_notifications_paginators.ListEventTypesPaginator = client.get_paginator("list_event_types")
list_notification_rules_paginator: codestar_notifications_paginators.ListNotificationRulesPaginator = client.get_paginator("list_notification_rules")
list_targets_paginator: codestar_notifications_paginators.ListTargetsPaginator = client.get_paginator("list_targets")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_codestar_notifications
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_codestar_notifications as codestar_notifications
from mypy_boto3_codestar_notifications import CodeStarNotificationsClient
# with these
from mypy_boto3 import codestar_notifications
from mypy_boto3.codestar_notifications import CodeStarNotificationsClient
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-codestar-notifications-1.13.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c694958ecf344fb9762e58df93ef7f6877611e5491487f5cbf79f9e0853ffd34 |
|
MD5 | 9da4a30ad9e57b59d19a1bf1d79f5725 |
|
BLAKE2b-256 | 6f048448e76a26e5b373a39881538e0e166f2f0dfdaa2feacb756a57890e1688 |
Hashes for mypy_boto3_codestar_notifications-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ab82dc1993cd566c320a8834cf2e83f111fad5e6cd9e5cee3d9ac351d56f1c |
|
MD5 | 13d5096ecc68540148e50329ef2f98d3 |
|
BLAKE2b-256 | ed491a5dab887dfdbba0c97adbee1e1143cf914ef3bed1686da2eba513f9d82e |