This commit is contained in:
Christian Mantha
2026-03-02 19:10:52 -05:00
commit 2ca0b9ef7c
28907 changed files with 5233713 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from mlflow.store.entities.paged_list import PagedList
__all__ = ["PagedList"]

View File

@@ -0,0 +1,18 @@
from typing import TypeVar
T = TypeVar("T")
class PagedList(list[T]):
"""
Wrapper class around the base Python `List` type. Contains an additional `token` string
attribute that can be passed to the pagination API that returned this list to fetch additional
elements, if any are available
"""
def __init__(self, items: list[T], token):
super().__init__(items)
self.token = token
def to_list(self):
return list(self)