mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-10-30 17:06:06 +08:00
Drop Python 3.9 support
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from typing import Callable, Generic, Optional, cast
|
||||
from collections.abc import Callable
|
||||
from typing import Generic, cast
|
||||
|
||||
import pytest
|
||||
from fastapi import Response
|
||||
@ -21,8 +22,8 @@ class MockTransportLogoutNotSupported(BearerTransport):
|
||||
|
||||
class MockStrategyDestroyNotSupported(Strategy, Generic[models.UP]):
|
||||
async def read_token(
|
||||
self, token: Optional[str], user_manager: BaseUserManager[models.UP, models.ID]
|
||||
) -> Optional[models.UP]:
|
||||
self, token: str | None, user_manager: BaseUserManager[models.UP, models.ID]
|
||||
) -> models.UP | None:
|
||||
return None
|
||||
|
||||
async def write_token(self, user: models.UP) -> str:
|
||||
|
||||
Reference in New Issue
Block a user