Skip to content

Paginators#

Index > RePostPrivate > Paginators

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

ListChannelsPaginator#

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

# ListChannelsPaginator usage example

from boto3.session import Session

from mypy_boto3_repostspace.paginator import ListChannelsPaginator

def get_list_channels_paginator() -> ListChannelsPaginator:
    return Session().client("repostspace").get_paginator("list_channels")
# ListChannelsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_repostspace.paginator import ListChannelsPaginator

session = Session()

client = Session().client("repostspace")  # (1)
paginator: ListChannelsPaginator = client.get_paginator("list_channels")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: RePostPrivateClient
  2. paginator: ListChannelsPaginator
  3. item: PageIterator[ListChannelsOutputTypeDef]

paginate#

Type annotations and code completion for ListChannelsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    spaceId: str,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> botocore.paginate.PageIterator[ListChannelsOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See PageIterator[ListChannelsOutputTypeDef]
# paginate method usage example with argument unpacking

kwargs: ListChannelsInputPaginateTypeDef = {  # (1)
    "spaceId": ...,
}

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

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: PageIterator[ListSpacesOutputTypeDef]

paginate#

Type annotations and code completion for ListSpacesPaginator.paginate method.

# paginate method definition

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

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

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