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
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.7MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 3.3s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
EventBridgeSchedulerClient
✓ from mypy_boto3_scheduler.client import EventBridgeSchedulerClient
✗ from mypy_boto3_scheduler import EventBridgeSchedulerClient
EventBridgeSchedulerServiceResource
✓ from mypy_boto3_scheduler.service_resource import EventBridgeSchedulerServiceResource
ServiceResource
✓ from mypy_boto3_scheduler.service_resource import ServiceResource
This quickstart demonstrates how to import the `EventBridgeSchedulerClient` type and use it to explicitly type-hint your `boto3` client. This enables static type checking and provides rich IDE auto-completion for all client methods and their arguments.
import boto3
from mypy_boto3_scheduler import EventBridgeSchedulerClient
def get_scheduler_client() -> EventBridgeSchedulerClient:
"""Returns a type-hinted EventBridgeScheduler client."""
# boto3.client('scheduler') without explicit type annotation
# would return a 'Client' type, losing type-checking benefits.
client: EventBridgeSchedulerClient = boto3.client("scheduler")
return client
if __name__ == "__main__":
# Example usage: List schedules
scheduler_client = get_scheduler_client()
try:
response = scheduler_client.list_schedules(MaxResults=1)
print("Successfully listed schedules.")
for schedule in response.get('Schedules', []):
print(f" - {schedule.get('Name')}")
except Exception as e:
print(f"Error listing schedules: {e}")
Debug
Known issues
breakingThe `mypy-boto3-builder` (which generates this stub) removed support for Python 3.8. All generated stubs from builder version 8.12.0 onwards require Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or higher.
affects: mypy-boto3-builder>=8.12.0
breakingThe `mypy-boto3-builder 8.9.0` introduced breaking changes in how TypeDef names are generated. Type definitions for packed method arguments might have shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). Conflicting `Extra` postfixes were also moved to the end.fixReview and update type definition names in your code if you were explicitly referencing them.
affects: mypy-boto3-builder>=8.9.0
deprecatedThe `sms-voice` service was removed from the `mypy-boto3` ecosystem in `mypy-boto3-builder 8.11.0`. Users should switch to `pinpoint-sms-voice` instead. While this specifically impacts `sms-voice` stubs, it's a relevant deprecation policy for the broader `mypy-boto3` project.fixMigrate usage to the `pinpoint-sms-voice` service and its corresponding stubs.
affects: mypy-boto3-builder>=8.11.0
gotchaWhen using `typing.TYPE_CHECKING` guards to conditionally import stubs for Pylint, it might report undefined variables. To resolve this, ensure that types are set to `object` in the non-`TYPE_CHECKING` branch.fixAdd `else: YourClient = object` for conditional imports: `if TYPE_CHECKING: from mypy_boto3_service import YourClient else: YourClient = object`.
affects: All
gotchaFor `mypy-boto3-lite` or standalone packages like this one, explicit type annotations are often necessary for `boto3.Session().client()` and `boto3.Session().resource()` calls to ensure full IDE auto-completion and type inference, even if `mypy` might sometimes infer them.fixAlways explicitly annotate the client or resource variable with the imported stub type, e.g., `client: EventBridgeSchedulerClient = boto3.client("scheduler")`. affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK runtime functionality that these stubs type-check.
mypyoptionalA static type checker that utilizes these stubs for code analysis.
pyrightoptionalAnother static type checker that utilizes these stubs for code analysis, often integrated into IDEs.