From a89f2a00f765963ca94d399579d5c1794872f185 Mon Sep 17 00:00:00 2001
From: JD Solanki <jdsolanki0001@gmail.com>
Date: Thu, 17 Oct 2024 13:50:57 +0530
Subject: [PATCH] fix: add mapped types in TYPE_CHECKING block for all cols

---
 fastapi_users_db_sqlalchemy/__init__.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fastapi_users_db_sqlalchemy/__init__.py b/fastapi_users_db_sqlalchemy/__init__.py
index 69af5b0..f0e0778 100644
--- a/fastapi_users_db_sqlalchemy/__init__.py
+++ b/fastapi_users_db_sqlalchemy/__init__.py
@@ -22,12 +22,12 @@ class SQLAlchemyBaseUserTable(Generic[ID]):
     __tablename__ = "user"
 
     if TYPE_CHECKING:  # pragma: no cover
-        id: ID
-        email: str
-        hashed_password: str
-        is_active: bool
-        is_superuser: bool
-        is_verified: bool
+        id: ID | Mapped[Mapped]
+        email: str | Mapped[str]
+        hashed_password: str | Mapped[str]
+        is_active: bool | Mapped[bool]
+        is_superuser: bool | Mapped[bool]
+        is_verified: bool | Mapped[bool]
     else:
         email: Mapped[str] = mapped_column(
             String(length=320), unique=True, index=True, nullable=False