mypy-boto3-migrationhuborchestrator provides type annotations for the `boto3` AWS Migration Hub Orchestrator service, enhancing static analysis and IDE autocompletion for Python projects. It is generated by the `mypy-boto3-builder` and is currently at version 1.42.3, with releases closely tracking `boto3` updates to ensure compatibility and comprehensive type coverage.
pip install mypy-boto3-migrationhuborchestratorVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use the `mypy-boto3-migrationhuborchestrator` stubs with a `boto3` client to get type-checking for the `list_templates` operation. It includes the recommended `TYPE_CHECKING` guard for imports and handles potential `AccessDeniedException`.
Upgrade your Python environment to 3.9 or newer.
Update your code to use the new `TypeDef` names as per the latest stub documentation. Your IDE or type checker should flag these if you are using explicit type hints.
Wrap your `from mypy_boto3_* import ...` statements in `if TYPE_CHECKING:` blocks. For example: `from typing import TYPE_CHECKING; if TYPE_CHECKING: from mypy_boto3_migrationhuborchestrator import MigrationHubOrchestratorClient`.
Update your type checker (e.g., `pip install --upgrade mypy`) and ensure it's configured to recognize PEP 561-compliant stub packages.
Install the package using pip: `pip install mypy-boto3-migrationhuborchestrator`
Ensure your type checker is up-to-date (`pip install --upgrade mypy`) and correctly configured to discover PEP 561-compliant stub packages. Also, verify the package is installed in the environment being checked.
Wrap your type imports in a `if TYPE_CHECKING:` block, and for runtime use, ensure `boto3` is used directly or provide a runtime-compatible fallback. For example: `from typing import TYPE_CHECKING; if TYPE_CHECKING: from mypy_boto3_migrationhuborchestrator import MigrationHubOrchestratorClient`.
Update your code to use the new `TypeDef` names. Consult the latest stub documentation for the correct naming conventions, which your IDE or type checker should also flag if you are using explicit type hints. For instance, `CreateDistributionExtraRequestTypeDef` became `CreateDistributionRequestExtraTypeDef` in a general example for the builder.