mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Drop Python 3.8 support
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import uuid
|
||||
from typing import Any, Dict, Generic, Optional, Union
|
||||
from typing import Any, Generic, Optional, Union
|
||||
|
||||
import jwt
|
||||
from fastapi import Request, Response
|
||||
@@ -514,7 +514,7 @@ class BaseUserManager(Generic[models.UP, models.ID]):
|
||||
async def on_after_update(
|
||||
self,
|
||||
user: models.UP,
|
||||
update_dict: Dict[str, Any],
|
||||
update_dict: dict[str, Any],
|
||||
request: Optional[Request] = None,
|
||||
) -> None:
|
||||
"""
|
||||
@@ -662,7 +662,7 @@ class BaseUserManager(Generic[models.UP, models.ID]):
|
||||
|
||||
return user
|
||||
|
||||
async def _update(self, user: models.UP, update_dict: Dict[str, Any]) -> models.UP:
|
||||
async def _update(self, user: models.UP, update_dict: dict[str, Any]) -> models.UP:
|
||||
validated_update_dict = {}
|
||||
for field, value in update_dict.items():
|
||||
if field == "email" and value != user.email:
|
||||
|
||||
Reference in New Issue
Block a user