Hack on typing returns typing error on sqlalchemy where
clause
#19
Labels
bug
Something isn't working
where
clause
#19
Describe the bug
Currently the code hacks the handling of
User
attributes with a condition onTYPE_CHECKING
. This hack should no longer exist because mypy now handles sqlalchemy field types correctly.The hack in the source code
https://github.com/fastapi-users/fastapi-users-db-sqlalchemy/blob/main/fastapi_users_db_sqlalchemy/__init__.py#L25
The typing error in the use of the User model.
To Reproduce
Expected behavior
Normally Pylance or mypy should not be in error in
where
clauses.Configuration
The text was updated successfully, but these errors were encountered: