diff --git a/falcon/hooks.py b/falcon/hooks.py index dcecc676d..354f0d0e1 100644 --- a/falcon/hooks.py +++ b/falcon/hooks.py @@ -25,7 +25,7 @@ from falcon.util.misc import get_argnames from falcon.util.sync import _wrap_non_coroutine_unsafe -if t.TYPE_CHECKING: +if t.TYPE_CHECKING: # pragma: no cover import falcon as wsgi from falcon import asgi diff --git a/falcon/media/handlers.py b/falcon/media/handlers.py index 736e2bb79..f40f6312b 100644 --- a/falcon/media/handlers.py +++ b/falcon/media/handlers.py @@ -15,7 +15,7 @@ from falcon.util import misc from falcon.vendor import mimeparse -if typing.TYPE_CHECKING: +if typing.TYPE_CHECKING: # pragma: no cover from typing import Mapping from falcon.typing import Serializer