diff --git a/ninja/pagination.py b/ninja/pagination.py index a238461e..548a3cd2 100644 --- a/ninja/pagination.py +++ b/ninja/pagination.py @@ -157,7 +157,7 @@ def _is_view_func(func: Any) -> TypeGuard[ViewFn[Req, P]]: if _is_view_func(func_or_pgn_class): return inject_pagination(func_or_pgn_class, pagination_class) - # Second check is redundant, but `TypeGuard` does narow the negative case. + # Second check is redundant, but `TypeGuard` does narrow the negative case. # `TypeIs` should resolve this: https://peps.python.org/pep-0742/ if not isnotset and isinstance(func_or_pgn_class, type): pagination_class = func_or_pgn_class