Type annotations for boto3.MarketplaceEntitlementService 1.14.54 service, generated by mypy-boto3-buider 2.4.0
Project description
mypy-boto3-marketplace-entitlement
Type annotations for boto3.MarketplaceEntitlementService 1.14.54 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 MarketplaceEntitlementService
service.
python -m pip install boto3-stubs[marketplace-entitlement]
How to use
Client annotations
MarketplaceEntitlementServiceClient
provides annotations for boto3.client("marketplace-entitlement")
.
import boto3
from mypy_boto3_marketplace_entitlement import MarketplaceEntitlementServiceClient
from mypy_boto3_marketplace_entitlement.paginator import GetEntitlementsPaginator
from mypy_boto3_marketplace_entitlement.type_defs import EntitlementTypeDef, ...
client: MarketplaceEntitlementServiceClient = boto3.client("marketplace-entitlement")
# 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: MarketplaceEntitlementServiceClient = session.client("marketplace-entitlement")
Paginators annotations
mypy_boto3_marketplace_entitlement.paginator
module contains type annotations for all paginators.
client: MarketplaceEntitlementServiceClient = boto3.client("marketplace-entitlement")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
get_entitlements_paginator: GetEntitlementsPaginator = client.get_paginator("get_entitlements")
Typed dictionations
mypy_boto3_marketplace_entitlement.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> EntitlementTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_marketplace_entitlement
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("marketplace-entitlement")
session_client = boto3.Session().client("marketplace-entitlement")
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-marketplace-entitlement-1.14.54.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72754c975336f3d5bde8899a36fb11dd8fa93b7c929ad0e23ecbda2abeb1e2e9 |
|
MD5 | 9d00e85317ffe22cf5d1375a6df0911f |
|
BLAKE2b-256 | b44c97fbbd9a6c940528387cdbb457db8a98bf909099a588c80cc532bab31316 |
Hashes for mypy_boto3_marketplace_entitlement-1.14.54.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2938dc13dc73c6281a30ca51c6fc88ab9d2041356c6288b691009fb8739cbb5d |
|
MD5 | 1b9248f9c37de6490c7fb9b07b3848d9 |
|
BLAKE2b-256 | a8fb5b2f3d73351f3e6013a88b012ce0bd6d2392d65c55ae2a73c3a6f1031a1f |