Update Mypy so I can use PEP 695 type param syntax
This commit is contained in:
parent
3ef3112014
commit
452867699e
10 changed files with 53 additions and 52 deletions
|
@ -1,7 +1,3 @@
|
|||
from typing import Generic, TypeVar
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
class BaseCache(Generic[T]):
|
||||
class BaseCache[T]:
|
||||
@staticmethod
|
||||
def parse_uri_path(path: str) -> dict[str, str]: ...
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
from typing import ClassVar, Optional, TypeVar
|
||||
from typing import ClassVar, Optional
|
||||
|
||||
from .base import BaseCache
|
||||
from .serializers import BaseSerializer
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
class Cache(BaseCache[T]):
|
||||
class Cache[T](BaseCache[T]):
|
||||
MEMORY: ClassVar[type[BaseCache]]
|
||||
REDIS: ClassVar[type[BaseCache] | None]
|
||||
MEMCACHED: ClassVar[type[BaseCache] | None]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue