Type annotations for boto3.QLDBSession 1.14.51 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-qldb-session
Type annotations for boto3.QLDBSession 1.14.51 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 QLDBSession
service.
python -m pip install boto3-stubs[qldb-session]
How to use
Client annotations
QLDBSessionClient
provides annotations for boto3.client("qldb-session")
.
import boto3
from mypy_boto3_qldb_session import QLDBSessionClient
from mypy_boto3_qldb_session.type_defs import CommitTransactionResultTypeDef, ...
client: QLDBSessionClient = boto3.client("qldb-session")
# 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: QLDBSessionClient = session.client("qldb-session")
Typed dictionations
mypy_boto3_qldb_session.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> CommitTransactionResultTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_qldb_session
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")
session_client = boto3.Session().client("qldb-session")
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-session-1.14.51.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa79e33df97c34f0115db582f27551055127577b98e6e39c7cf54f01ba768f50 |
|
MD5 | c0ebab77db55b39730704034c40958e8 |
|
BLAKE2b-256 | efb648b5e6e55394f8997d273560c08fd49cf86c23c9183248303e680495fb42 |
Hashes for mypy_boto3_qldb_session-1.14.51.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf52d497ce03c540dc73a0c7e98edb493832b8df73ce379db819da95426bf53b |
|
MD5 | 0df955d292d60001b3fb45debe6b205a |
|
BLAKE2b-256 | 8bc6ae67c103e7b8ce5ff43ecaa15373f34d07aa5237bed9f7ba2465bc6d4e49 |