Registry / type-stubs / mypy-boto3-codestar-notifications

mypy-boto3-codestar-notifications

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-codestar-notifications provides comprehensive type annotations for the `boto3` client for AWS CodeStar Notifications service. It helps developers leverage static analysis tools like Mypy to catch type-related errors in their AWS SDK code. The library's current version is 1.42.3, and it is released frequently, tracking updates to `boto3` and the `mypy-boto3-builder`.

pip install boto3 mypy-boto3-codestar-notifications
INSTALL
IMPORT
SIG · MYPY-BOTO3-CODESTA
M
mypy-boto3-codestar-notifications
type-stubspythonv1.43.0
Install
4.0s avg
Import
558ms
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.580s · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.0s · import 0.536s · 52MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CodeStarNotificationsClient
from mypy_boto3_codestar_notifications import CodeStarNotificationsClient
from boto3.client import CodeStarNotificationsClient
The `boto3` library itself does not provide granular type hints for its clients directly; `mypy-boto3-*` packages provide these.
ListNotificationRulesResultTypeDef
from mypy_boto3_codestar_notifications.type_defs import ListNotificationRulesResultTypeDef
from boto3.codestarnotifications.type_defs import ListNotificationRulesResultTypeDef
TypeDefs for input/output shapes are provided by the `mypy-boto3-*` stub package, not directly by `boto3`.

This quickstart demonstrates how to obtain a type-hinted CodeStar Notifications client and make a simple API call (`list_notification_rules`) with type-checked results. Remember to configure your AWS credentials for `boto3` to function at runtime.

import boto3 from mypy_boto3_codestar_notifications import CodeStarNotificationsClient from mypy_boto3_codestar_notifications.type_defs import ListNotificationRulesResultTypeDef # A boto3 session for runtime (not type-checked) session = boto3.Session(region_name="us-east-1") # Get a type-hinted CodeStarNotifications client client: CodeStarNotificationsClient = session.client("codestar-notifications") # Example API call with type-checked result try: result: ListNotificationRulesResultTypeDef = client.list_notification_rules() print(f"Found {len(result.get('NotificationRules', []))} notification rules.") # For demonstration, typically you'd iterate or check the rules if result.get('NotificationRules'): first_rule_name = result['NotificationRules'][0]['Name'] print(f"First rule name: {first_rule_name}") except Exception as e: print(f"Error listing notification rules: {e}")
Debug
Known issues
breakingPython 3.8 is no longer supported for any `mypy-boto3` packages generated by `mypy-boto3-builder` version 8.12.0 and later.
fix
Upgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-codestar-notifications versions generated by mypy-boto3-builder >= 8.12.0 (i.e., this package's 1.42.x and newer).
gotcha`mypy-boto3-*` stub packages provide type annotations *only*. You must also install `boto3` (or `aiobotocore`/`aioboto3`) for the runtime functionality. Without `boto3`, your code will fail at runtime.
fix
Ensure `pip install boto3 mypy-boto3-codestar-notifications` is run.
affects: All versions.
gotchaFor optimal type accuracy and to avoid potential mismatches, the version of `mypy-boto3-codestar-notifications` should ideally match the minor version of your `boto3` installation (e.g., `mypy-boto3-codestar-notifications==1.42.x` for `boto3==1.42.x`).
fix
Regularly update both `boto3` and its corresponding `mypy-boto3-*` stub packages in tandem.
affects: All versions.
breakingInternal TypeDef names for method arguments may have changed in `mypy-boto3-builder` 8.9.0. If you were directly importing and referencing these generated TypeDefs (e.g., `CreateDistributionRequestRequestTypeDef`), their names might have been shortened or suffixes reordered.
fix
Update your code to reflect the new TypeDef naming conventions, as seen in the generated `.pyi` files. This typically affects advanced usage where TypeDefs are explicitly imported and referenced.
affects: mypy-boto3-codestar-notifications versions generated by mypy-boto3-builder >= 8.9.0.
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality that these stubs type-check.
Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
2
Resources
mypy-boto3-codestar-notifications — pip install mypy-boto3-codestar-notifications · libregistry