Skip to content

Commit ff7ab65

Browse files
committed
chore: make pager generic type more specific
1 parent 6e68d8b commit ff7ab65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tableauserverclient/server/pager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import copy
22
from functools import partial
3-
from typing import Generic, Iterator, List, Optional, Protocol, Tuple, TypeVar, Union, runtime_checkable
3+
from typing import Generic, Iterable, Iterator, List, Optional, Protocol, Tuple, TypeVar, Union, runtime_checkable
44

55
from tableauserverclient.models.pagination_item import PaginationItem
66
from tableauserverclient.server.request_options import RequestOptions
@@ -22,7 +22,7 @@ def __call__(self, __req_options: Optional[RequestOptions], **kwargs) -> ReturnT
2222
...
2323

2424

25-
class Pager(Generic[T]):
25+
class Pager(Iterable[T]):
2626
"""
2727
Generator that takes an endpoint (top level endpoints with `.get)` and lazily loads items from Server.
2828
Supports all `RequestOptions` including starting on any page. Also used by models to load sub-models

0 commit comments

Comments
 (0)