Type annotations for boto3.MigrationHubConfig 1.17.64 service, generated by mypy-boto3-buider 4.8.0
Project description
mypy-boto3-migrationhub-config
Type annotations for boto3.MigrationHubConfig 1.17.64 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-buider 4.8.0.
More information can be found on boto3-stubs page and in auto-generated docs
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs
for MigrationHubConfig
service.
python -m pip install boto3-stubs[migrationhub-config]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto-stubs[migrationhub-config]
in your environment:python -m pip install 'boto3-stubs[migrationhub-config]'
Both type checking and auto-complete should work for MigrationHubConfig
service.
No explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
boto-stubs[migrationhub-config]
in your environment:python -m pip install 'boto3-stubs[migrationhub-config]'
Both type checking and auto-complete should work for MigrationHubConfig
service.
No explicit type annotations required, write your boto3
code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs
submodules.
Other IDEs
Not tested, but as long as your IDE support mypy
or pyright
, everything should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
boto-stubs[migrationhub-config]
in your environment:python -m pip install 'boto3-stubs[migrationhub-config]'
- Run
mypy
as usual
Type checking should work for MigrationHubConfig
service.
No explicit type annotations required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto-stubs[migrationhub-config]
in your environment:python -m pip install 'boto3-stubs[migrationhub-config]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for MigrationHubConfig
service.
No explicit type annotations required, write your boto3
code as usual.
Explicit type annotations
Client annotations
MigrationHubConfigClient
provides annotations for boto3.client("migrationhub-config")
.
import boto3
from mypy_boto3_migrationhub_config import MigrationHubConfigClient
client: MigrationHubConfigClient = boto3.client("migrationhub-config")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MigrationHubConfigClient = session.client("migrationhub-config")
Literals
mypy_boto3_migrationhub_config.literals
module contains literals extracted from shapes
that can be used in user code for type checking.
from mypy_boto3_migrationhub_config.literals import (
TargetType,
)
def check_value(value: TargetType) -> bool:
...
Typed dictionaries
mypy_boto3_migrationhub_config.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_migrationhub_config.type_defs import (
CreateHomeRegionControlResultTypeDef,
DescribeHomeRegionControlsResultTypeDef,
GetHomeRegionResultTypeDef,
HomeRegionControlTypeDef,
TargetTypeDef,
)
def get_structure() -> CreateHomeRegionControlResultTypeDef:
return {
...
}
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-migrationhub-config-1.17.64.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a7d890cbbbd15275509bb37e96133a99f24beef71485f5c4d6963eaf527668 |
|
MD5 | b87308aafb4acd1f706559afad6d913b |
|
BLAKE2b-256 | 1be49ea38f24cb3faea2527560fc77ab9ceba86c1783e5e64cb4d706bea25487 |
Hashes for mypy_boto3_migrationhub_config-1.17.64.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf9247d7ddfde8d22c388b32ab25e15fe852acb45f31641fdf1b6ca8c019f3e |
|
MD5 | f436661c811cf6faa8ec3da3f17a1846 |
|
BLAKE2b-256 | 90b56a57ca9931b1667ad3e4e078bd557564ad8c65424a33c1fca1ed0c0e7b46 |