Type annotations for boto3.ForecastService 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-forecast
Type annotations for boto3.ForecastService 1.14.0 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 ForecastService
service.
python -m pip install boto3-stubs[forecast]
Use boto3
with mypy_boto3_forecast
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_forecast import ForecastServiceClient
# Now mypy can check if your code is valid.
client: ForecastServiceClient = boto3.client("forecast")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ForecastServiceClient = session.client("forecast")
# Annotated paginators are included as well
import mypy_boto3_forecast.paginator as forecast_paginators
list_dataset_groups_paginator: forecast_paginators.ListDatasetGroupsPaginator = client.get_paginator("list_dataset_groups")
list_dataset_import_jobs_paginator: forecast_paginators.ListDatasetImportJobsPaginator = client.get_paginator("list_dataset_import_jobs")
list_datasets_paginator: forecast_paginators.ListDatasetsPaginator = client.get_paginator("list_datasets")
list_forecast_export_jobs_paginator: forecast_paginators.ListForecastExportJobsPaginator = client.get_paginator("list_forecast_export_jobs")
list_forecasts_paginator: forecast_paginators.ListForecastsPaginator = client.get_paginator("list_forecasts")
list_predictors_paginator: forecast_paginators.ListPredictorsPaginator = client.get_paginator("list_predictors")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_forecast
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("forecast")
session_client = boto3.Session().client("forecast")
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-forecast-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b91c361f6028ff1124b08f25c84d8019418c90632fefa375d91ebf4bf1e1a73 |
|
MD5 | cd0adfc734e07fadf8dc16c735870791 |
|
BLAKE2b-256 | b79e6a291b1a5429a62e278191bb630ad35a350677ac38694acb6026909a6853 |
Hashes for mypy_boto3_forecast-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d35cc4a7bdc4c6beb26d11ce40aa02151d74497510c36d7c560c97959312459c |
|
MD5 | 485abab0d0334686c52d46d70f273209 |
|
BLAKE2b-256 | 0c6cd5d7212236a0680b20269d17080abf8dd1ea8b2a00b451e40d3cea6138c4 |