We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc33ac commit 0b0c79fCopy full SHA for 0b0c79f
fastapi_pagination/customization.py
@@ -67,12 +67,12 @@ def get_page_bases(cls: TPage) -> tuple[type[Any], ...]:
67
68
if IS_PYDANTIC_V2:
69
params = cls.__pydantic_generic_metadata__["parameters"]
70
- bases = (cls,) if not params else (cls[params], Generic[params]) # type: ignore[assignment,index]
+ bases = (cls,) if not params else (cls[params], Generic[params]) # type: ignore[index]
71
elif cls.__concrete__:
72
bases = (cls,)
73
else:
74
params = tuple(cls.__parameters__)
75
- bases = (cls[params], Generic[params]) # type: ignore[assignment,index]
+ bases = (cls[params], Generic[params]) # type: ignore[index]
76
77
return bases
78
0 commit comments