Skip to content

Commit 0b0c79f

Browse files
committed
Fix mypy errors
1 parent bcc33ac commit 0b0c79f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastapi_pagination/customization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ def get_page_bases(cls: TPage) -> tuple[type[Any], ...]:
6767

6868
if IS_PYDANTIC_V2:
6969
params = cls.__pydantic_generic_metadata__["parameters"]
70-
bases = (cls,) if not params else (cls[params], Generic[params]) # type: ignore[assignment,index]
70+
bases = (cls,) if not params else (cls[params], Generic[params]) # type: ignore[index]
7171
elif cls.__concrete__:
7272
bases = (cls,)
7373
else:
7474
params = tuple(cls.__parameters__)
75-
bases = (cls[params], Generic[params]) # type: ignore[assignment,index]
75+
bases = (cls[params], Generic[params]) # type: ignore[index]
7676

7777
return bases
7878

0 commit comments

Comments
 (0)