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:
Martijn Pieters
2023-04-27 16:31:42 +01:00
parent a52f6b1406
commit 9c966286b4
2 changed files with 5 additions and 5 deletions

View File

@@ -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")