mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
Use complete type hints with all generic parameters filled
This makes the core fastapi_cache pass all strict type checker tests.
This commit is contained in:
@@ -17,7 +17,7 @@ from fastapi_cache import FastAPICache
|
||||
from fastapi_cache.coder import Coder
|
||||
from fastapi_cache.types import KeyBuilder
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger: logging.Logger = logging.getLogger(__name__)
|
||||
logger.addHandler(logging.NullHandler())
|
||||
P = ParamSpec("P")
|
||||
R = TypeVar("R")
|
||||
|
||||
Reference in New Issue
Block a user