Type annotations for boto3.Braket 1.14.53 service, generated by mypy-boto3-buider 2.4.0
Project description
mypy-boto3-braket
Type annotations for boto3.Braket 1.14.53 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.4.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Braket
service.
python -m pip install boto3-stubs[braket]
How to use
Client annotations
BraketClient
provides annotations for boto3.client("braket")
.
import boto3
from mypy_boto3_braket import BraketClient
from mypy_boto3_braket.paginator import SearchDevicesPaginator, SearchQuantumTasksPaginator
from mypy_boto3_braket.type_defs import DeviceSummaryTypeDef, ...
client: BraketClient = boto3.client("braket")
# 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: BraketClient = session.client("braket")
Paginators annotations
mypy_boto3_braket.paginator
module contains type annotations for all paginators.
client: BraketClient = boto3.client("braket")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
search_devices_paginator: SearchDevicesPaginator = client.get_paginator("search_devices")
search_quantum_tasks_paginator: SearchQuantumTasksPaginator = client.get_paginator("search_quantum_tasks")
Typed dictionations
mypy_boto3_braket.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> DeviceSummaryTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_braket
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
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 carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("braket")
session_client = boto3.Session().client("braket")
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-braket-1.14.53.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4e714dce62095198d22daf3ca7ce62977ae5bea4722a13c2010f280be6dd18 |
|
MD5 | bcd2b8ed0acd4d175359d74d22a3b414 |
|
BLAKE2b-256 | b1e1dde865b3baa05eab1dcdb0b43b808183a2dd0c08444fb4b74d084648e910 |
Hashes for mypy_boto3_braket-1.14.53.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d91c238bd9aee9591f5109b94f6b351e943207cb8d83607f575c95f416fdaa3 |
|
MD5 | c98f8b20fc5913a26d51dbbb6516996c |
|
BLAKE2b-256 | 0e40d8931cca75a04570972e8727aaa2db867170ebee30198e8858f81e7dcb06 |