You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
268 File "/builds/app/app.py", line 5, in <module>
268 from fastapi_pagination import add_pagination
269 File "/usr/local/lib/python3.9/site-packages/fastapi_pagination/__init__.py", line 1, in <module>
270 from .api import (
271 File "/usr/local/lib/python3.9/site-packages/fastapi_pagination/api.py", line 12, in <module>
272 from .bases import AbstractPage, AbstractParams
273 File "/usr/local/lib/python3.9/site-packages/fastapi_pagination/bases.py", line 54, in <module>
274 class AbstractPage(GenericModel, Generic[T], ABC):
275 File "pydantic/main.py", line 282, in pydantic.main.ModelMetaclass.__new__
276 File "pydantic/typing.py", line 287, in pydantic.typing.resolve_annotations
277 For use of globalns and localns see the docstring for get_type_hints().
278 File "/usr/local/lib/python3.9/typing.py", line 292, in _eval_type
279 return t._evaluate(globalns, localns, recursive_guard)
280 File "/usr/local/lib/python3.9/typing.py", line 553, in _evaluate
281 type_ = _type_check(
282 File "/usr/local/lib/python3.9/typing.py", line 158, in _type_check
283 raise TypeError(f"{arg} is not valid as type argument")
284TypeError: typing.ClassVar[typing.Type[fastapi_pagination.bases.AbstractParams]] is not valid as type argument
The text was updated successfully, but these errors were encountered:
But this issue should not be present anymore because fastapi-pagination version 0.9.1 contains a workaround.
Maybe I am doing completely wrong here - using the latest version, all my pytest fail with the error above, but the code will run. The only way to fix the pytest errors is by using the latest master version of pydantic, but that introduces other breaking changes in my code and breaks while running.
I'm using a custom page setup (basic page with an added total pages parameter), not really sure what I'm missing here.
does work with python3.9.8
The text was updated successfully, but these errors were encountered: