MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / PaginatedQueryParams

Class PaginatedQueryParams

api/integrations/github/dataclasses.py:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29# Dataclasses for external calls to GitHub API
30@dataclass
31class PaginatedQueryParams:
32 page: int = field(default=1, kw_only=True)
33 page_size: int = field(default=100, kw_only=True)
34
35 def __post_init__(self): # type: ignore[no-untyped-def]
36 if self.page < 1:
37 raise ValueError("Page must be greater or equal than 1")
38 if self.page_size < 1 or self.page_size > 100:
39 raise ValueError("Page size must be an integer between 1 and 100")
40
41
42@dataclass

Callers

nothing calls this directly

Calls 1

fieldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…