mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Improve generic typing
This commit is contained in:
@ -54,6 +54,9 @@ class BaseUserDB(BaseUser):
|
||||
orm_mode = True
|
||||
|
||||
|
||||
U = TypeVar("U", bound=BaseUser)
|
||||
UC = TypeVar("UC", bound=BaseUserCreate)
|
||||
UU = TypeVar("UU", bound=BaseUserUpdate)
|
||||
UD = TypeVar("UD", bound=BaseUserDB)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user