From f33c557a6b474f8f8e93b288917fea6750609efb Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Tue, 8 Aug 2023 12:49:58 +0200 Subject: [PATCH] Exclude TYPE_CHECKING blocks from coverage --- ixmp/utils/__init__.py | 2 +- ixmp/utils/sphinx_linkcode_github.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ixmp/utils/__init__.py b/ixmp/utils/__init__.py index 4140bbf69..e558712b1 100644 --- a/ixmp/utils/__init__.py +++ b/ixmp/utils/__init__.py @@ -12,7 +12,7 @@ from ixmp.backend import ItemType -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from ixmp import TimeSeries log = logging.getLogger(__name__) diff --git a/ixmp/utils/sphinx_linkcode_github.py b/ixmp/utils/sphinx_linkcode_github.py index 2307749d8..46869a5de 100644 --- a/ixmp/utils/sphinx_linkcode_github.py +++ b/ixmp/utils/sphinx_linkcode_github.py @@ -10,7 +10,7 @@ from sphinx.util import logging -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover import sphinx.application log = logging.getLogger(__name__)