Type annotations for boto3.QLDB 1.14.23 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-qldb
Type annotations for boto3.QLDB 1.14.23 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.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 QLDB
service.
python -m pip install boto3-stubs[qldb]
How to use
Client annotations
QLDBClient
provides annotations for boto3.client("qldb")
.
import boto3
from mypy_boto3_qldb import QLDBClient
from mypy_boto3_qldb.type_defs import JournalKinesisStreamDescriptionTypeDef, ...
client: QLDBClient = boto3.client("qldb")
# 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: QLDBClient = session.client("qldb")
Typed dictionations
mypy_boto3_qldb.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> JournalKinesisStreamDescriptionTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_qldb
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("qldb")
session_client = boto3.Session().client("qldb")
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-qldb-1.14.23.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 345e512f13beed74d33811ca95d78ea11d2f68ed6fe580ef3d43ce2d3f29360e |
|
MD5 | e10cd7c7c9f748f398a807783208f685 |
|
BLAKE2b-256 | 8bfbb3e2ef9e79d7b82dc59fbc80d666108e0e681ce892c217c204c99e186bf1 |
Hashes for mypy_boto3_qldb-1.14.23.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0bc89297c7a3aaf879aad156a8879d1ebc1bf5c6bab7c5fb8e5e0ddab4c1f5 |
|
MD5 | a72eb3e200fe872e81c15c15ce87a72e |
|
BLAKE2b-256 | 3ef61e4ba91e1b3fe0b4a19279241199f4a1d28357d9bc86caab997405eed443 |