Skip to content

Paginators#

Index > Artifact > Paginators

Auto-generated documentation for Artifact type annotations stubs module mypy-boto3-artifact.

ListReportsPaginator#

Type annotations and code completion for boto3.client("artifact").get_paginator("list_reports"). boto3 documentation

# ListReportsPaginator usage example

from boto3.session import Session

from mypy_boto3_artifact.paginator import ListReportsPaginator

def get_list_reports_paginator() -> ListReportsPaginator:
    return Session().client("artifact").get_paginator("list_reports")
# ListReportsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_artifact.paginator import ListReportsPaginator

session = Session()

client = Session().client("artifact")  # (1)
paginator: ListReportsPaginator = client.get_paginator("list_reports")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ArtifactClient
  2. paginator: ListReportsPaginator
  3. item: ListReportsResponseTypeDef

paginate#

Type annotations and code completion for ListReportsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[ListReportsResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListReportsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListReportsRequestListReportsPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

parent.paginate(**kwargs)
  1. See ListReportsRequestListReportsPaginateTypeDef