From d9346635c44a019ede093b88274a9314f6a9d540 Mon Sep 17 00:00:00 2001 From: Grant Ramsay Date: Sun, 24 Mar 2024 19:29:20 +0000 Subject: [PATCH] mark typing imports as 'nocover' Signed-off-by: Grant Ramsay --- fastapi_redis_cache/client.py | 2 +- fastapi_redis_cache/key_gen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_redis_cache/client.py b/fastapi_redis_cache/client.py index b4f0b50..337e701 100644 --- a/fastapi_redis_cache/client.py +++ b/fastapi_redis_cache/client.py @@ -19,7 +19,7 @@ from fastapi_redis_cache.redis import redis_connect from fastapi_redis_cache.util import serialize_json -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from fastapi import Request, Response from redis import client diff --git a/fastapi_redis_cache/key_gen.py b/fastapi_redis_cache/key_gen.py index c4f4b79..1efc684 100644 --- a/fastapi_redis_cache/key_gen.py +++ b/fastapi_redis_cache/key_gen.py @@ -7,7 +7,7 @@ from fastapi_redis_cache.types import ArgType, SigParameters -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from collections import OrderedDict ALWAYS_IGNORE_ARG_TYPES = [Response, Request]