Type annotations for boto3.CodeStarNotifications 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.3.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b70c0924dc21d12b0a27f5a4055cb266ed96b6ad778639422ab057a81c4a29bd |
|
MD5 | 8d0210d98dc7c7b8bae9227bc7f9fe95 |
|
BLAKE2b-256 | 45f2c1ac84cd169fd63a726ee32f05ab6899b56679909281665217be39fe1e61 |
Hashes for mypy_boto3_codestar_notifications-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffad223d65496a515f24695d484923e9bfc6b61ede95246c3ffb5c5a033e3d5 |
|
MD5 | 42374084f150cbc9bfe7b6f21f17412c |
|
BLAKE2b-256 | fb5da023748a6c8b8a35cc883a6c2279d3d0c7d5d583b7ef16c6ca1ea317ff26 |