mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 11:11:16 +08:00
Drop Python 3.8 support
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
from typing import List
|
||||
|
||||
import motor.motor_asyncio
|
||||
from beanie import Document
|
||||
from fastapi_users.db import BaseOAuthAccount, BeanieBaseUser, BeanieUserDatabase
|
||||
@ -17,7 +15,7 @@ class OAuthAccount(BaseOAuthAccount):
|
||||
|
||||
|
||||
class User(BeanieBaseUser, Document):
|
||||
oauth_accounts: List[OAuthAccount] = Field(default_factory=list)
|
||||
oauth_accounts: list[OAuthAccount] = Field(default_factory=list)
|
||||
|
||||
|
||||
async def get_user_db():
|
||||
|
Reference in New Issue
Block a user