MushroomMaula / fastapi_login

FastAPI-Login tries to provide similar functionality as Flask-Login does.
https://pypi.org/project/fastapi-login
MIT License
639 stars 58 forks source link

Fixed return type of user_loader #109

Closed kazunorimiura closed 1 year ago

kazunorimiura commented 1 year ago

The return value of user_loader (Union[Callable, Awaitable]) is insufficient because Awaitable is not a callable object.

mypy will emit the following error:

スクリーンショット 2023-07-02 18 29 14