Skip to content

Paginators#

Index > rePostPrivate > Paginators

Auto-generated documentation for rePostPrivate type annotations stubs module mypy-boto3-repostspace.

ListSpacesPaginator#

Type annotations and code completion for boto3.client("repostspace").get_paginator("list_spaces"). boto3 documentation

# ListSpacesPaginator usage example

from boto3.session import Session

from mypy_boto3_repostspace.paginator import ListSpacesPaginator

def get_list_spaces_paginator() -> ListSpacesPaginator:
    return Session().client("repostspace").get_paginator("list_spaces")
# ListSpacesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_repostspace.paginator import ListSpacesPaginator

session = Session()

client = Session().client("repostspace")  # (1)
paginator: ListSpacesPaginator = client.get_paginator("list_spaces")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: rePostPrivateClient
  2. paginator: ListSpacesPaginator
  3. item: ListSpacesOutputTypeDef

paginate#

Type annotations and code completion for ListSpacesPaginator.paginate method.

# paginate method definition

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

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

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