Type annotations for boto3.CloudSearchDomain 1.17.95 service, generated by mypy-boto3-buider 4.18.2
Project description
mypy-boto3-cloudsearchdomain
Type annotations for boto3.CloudSearchDomain 1.17.95 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-buider 4.18.2.
More information can be found on boto3-stubs page and in mypy-boto3-cloudsearchdomain docs
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs
for CloudSearchDomain
service.
python -m pip install boto3-stubs[cloudsearchdomain]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto-stubs[cloudsearchdomain]
in your environment:python -m pip install 'boto3-stubs[cloudsearchdomain]'
Both type checking and auto-complete should work for CloudSearchDomain
service. No explicit type annotations required, write your boto3
code as
usual.
PyCharm
- Install
boto-stubs[cloudsearchdomain]
in your environment:python -m pip install 'boto3-stubs[cloudsearchdomain]'
Both type checking and auto-complete should work for CloudSearchDomain
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[cloudsearchdomain]
in your environment:python -m pip install 'boto3-stubs[cloudsearchdomain]'
- Run
mypy
as usual
Type checking should work for CloudSearchDomain
service. No explicit type
annotations required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto-stubs[cloudsearchdomain]
in your environment:python -m pip install 'boto3-stubs[cloudsearchdomain]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for CloudSearchDomain
service. No explicit type
annotations required, write your boto3
code as usual.
Explicit type annotations
Client annotations
CloudSearchDomainClient
provides annotations for
boto3.client("cloudsearchdomain")
.
import boto3
from mypy_boto3_cloudsearchdomain import CloudSearchDomainClient
client: CloudSearchDomainClient = boto3.client("cloudsearchdomain")
# 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: CloudSearchDomainClient = session.client("cloudsearchdomain")
Literals
mypy_boto3_cloudsearchdomain.literals
module contains literals extracted from
shapes that can be used in user code for type checking.
from mypy_boto3_cloudsearchdomain.literals import (
ContentTypeType,
QueryParserType,
)
def check_value(value: ContentTypeType) -> bool:
...
Typed dictionaries
mypy_boto3_cloudsearchdomain.type_defs
module contains structures and shapes
assembled to typed dictionaries for additional type checking.
from mypy_boto3_cloudsearchdomain.type_defs import (
BucketInfoTypeDef,
BucketTypeDef,
DocumentServiceWarningTypeDef,
FieldStatsTypeDef,
HitTypeDef,
HitsTypeDef,
SearchResponseTypeDef,
SearchStatusTypeDef,
SuggestModelTypeDef,
SuggestResponseTypeDef,
SuggestStatusTypeDef,
SuggestionMatchTypeDef,
UploadDocumentsResponseTypeDef,
)
def get_structure() -> BucketInfoTypeDef:
return {
...
}
Versioning
mypy-boto3-cloudsearchdomain
version is the same as related boto3
version
and follows PEP 440 format.
Documentation
All type annotations can be found in mypy-boto3-cloudsearchdomain docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
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-cloudsearchdomain-1.17.95.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9523a8ac02efdf91a1696a28b39884867190a9d161a7120c7730447320148b8b |
|
MD5 | 9be93e76aaa96af104e6f38cc404cbdb |
|
BLAKE2b-256 | ebbac2ddab66fef252acf6ee7baecc28a3b177e6de9c1ac6449d575e00a3868c |
Hashes for mypy_boto3_cloudsearchdomain-1.17.95-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff015b4fe3720da46cd481a493128427a914e873cf99db74c33731db011c5754 |
|
MD5 | 2e1b1697a5a226acbdefa4144a1e8913 |
|
BLAKE2b-256 | ee34e2a3a55b47e97ba4e928327a9cddc1e15e1ea2d0e7f64c617f64f79fdbfb |