Type annotations for boto3.CodeStarconnections 1.14.10 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-codestar-connections
Type annotations for boto3.CodeStarconnections 1.14.10 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 CodeStarconnections
service.
python -m pip install boto3-stubs[codestar-connections]
How to use
Client annotations
CodeStarconnectionsClient
provides annotations for boto3.client("codestar-connections")
.
import boto3
from mypy_boto3_codestar_connections import CodeStarconnectionsClient
from mypy_boto3_codestar_connections.type_defs import ConnectionTypeDef, ...
client: CodeStarconnectionsClient = boto3.client("codestar-connections")
# 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: CodeStarconnectionsClient = session.client("codestar-connections")
Typed dictionations
mypy_boto3_codestar_connections.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> ConnectionTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_codestar_connections
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("codestar-connections")
session_client = boto3.Session().client("codestar-connections")
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-codestar-connections-1.14.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a0afc4e9b19aa3067a54438c27f34be0ebd85bb3c67f08e257bd6606d6ab9ed |
|
MD5 | 768bdb3839c2d834fd27dfd5a45467d2 |
|
BLAKE2b-256 | 2467733e51e1c74757583e5d37b33c6a32e5e31de1b021509245bc6ae75410a6 |
Hashes for mypy_boto3_codestar_connections-1.14.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c6086fe7a92530f9341ace8c8a86fe777622223507ed591f3ca4f2ce3a7d37 |
|
MD5 | 488d31b2b954bd9934ab2f42bbb5e482 |
|
BLAKE2b-256 | 7653c88679632c45bf0fa97bd211bc2e5b67a8e28226b988c2607ab05d6febb7 |