mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
LimitOffsetPage.create is annotated to return LimitOffsetPage but builds cls, so subclass pages failed return-value checks. A shared TypedLimitOffsetPage narrows create() to Self, and resolve_params() results are annotated with each page's params class. CustomLimitOffsetPage.total keeps its intentional widening to None (with_total=false) behind a narrow assignment ignore. The OpenAPI schema is byte-identical before and after. Claude-Session: https://claude.ai/code/session_01SPpv6W2ygP9tQ61fTQxdYp Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>