Type annotations for boto3.CodeStarNotifications 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-codestar-notifications
Type annotations for boto3.CodeStarNotifications 1.13.25 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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5abb93b1fd6dfd8e4f96c8d0f9cc0495164eb06b113d22aed88e0a39fee329da |
|
MD5 | bdc3f502583c812de9cf9c75ae051cf6 |
|
BLAKE2b-256 | 28b2745e57380b9277e24200c935480d59068c3fe90f1e1983561d560a884f3d |
Hashes for mypy_boto3_codestar_notifications-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42a4f0a57ec3377a81eae2cb1167e28fefab872c99492d42781e42c94860aed9 |
|
MD5 | 950c7c930d42c9bc023b51ddba481c50 |
|
BLAKE2b-256 | 2646444d20573ce6b3ba8816ffa2b24b93229b9dd6f4c3df1a0bfa30cc31177e |