mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +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