Type annotations for boto3.CodeStar 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-codestar
Type annotations for boto3.CodeStar 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for CodeStar
service.
python -m pip install boto3-stubs[codestar]
Use boto3
with mypy_boto3_codestar
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_codestar import CodeStarClient
# Now mypy can check if your code is valid.
client: CodeStarClient = boto3.client("codestar")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeStarClient = session.client("codestar")
# Annotated paginators are included as well
import mypy_boto3_codestar.paginator as codestar_paginators
list_projects_paginator: codestar_paginators.ListProjectsPaginator = client.get_paginator("list_projects")
list_resources_paginator: codestar_paginators.ListResourcesPaginator = client.get_paginator("list_resources")
list_team_members_paginator: codestar_paginators.ListTeamMembersPaginator = client.get_paginator("list_team_members")
list_user_profiles_paginator: codestar_paginators.ListUserProfilesPaginator = client.get_paginator("list_user_profiles")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_codestar
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
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("codestar")
session_client = boto3.Session().client("codestar")
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-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420492f56782d5f2afadc7a6155bc78bf373693a6e7e15eb65a3ba81a1e976ee |
|
MD5 | b63f2d71fcf646c2f1f80ff676abbe29 |
|
BLAKE2b-256 | ab773e7a4310696117e603803503567b1b11bd3b60c223ec4ef6515611650222 |
Hashes for mypy_boto3_codestar-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2eefc12ec45caa69c2d702aed2bce5938487774dab156fcbfcada88d6d46cee |
|
MD5 | 22305583cf09763aba7117490207fb17 |
|
BLAKE2b-256 | a80238cd6ea3b1938a920ea0fc9390f3d723b7e63e5ee3a052be79060cb5e351 |