summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreterbase
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-07-03 12:41:39 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-07-19 18:31:37 -0400
commit0bb1647fd15cc112098daf9961b2e01cb4e9cd23 (patch)
treecab2094c676a66e3eae55cd16e3f42ae7031e264 /mesonbuild/interpreterbase
parentcff2fb5950cb37b01df5046cc256826449b3abaa (diff)
downloadmeson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.tar.gz
move various bits of type-checking only code to TYPE_CHECKING blocks
Mostly detected with flake8-type-checking. Also quote T.cast() first arguments, since those are not affected by future annotations.
Diffstat (limited to 'mesonbuild/interpreterbase')
-rw-r--r--mesonbuild/interpreterbase/interpreterbase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py
index d039f6dfb..9aff5b971 100644
--- a/mesonbuild/interpreterbase/interpreterbase.py
+++ b/mesonbuild/interpreterbase/interpreterbase.py
@@ -22,7 +22,6 @@ from .baseobjects import (
InterpreterObject,
MesonInterpreterObject,
MutableInterpreterObject,
- InterpreterObjectTypeVar,
ObjectHolder,
IterableObject,
ContextManagerObject,
@@ -50,7 +49,7 @@ import typing as T
import textwrap
if T.TYPE_CHECKING:
- from .baseobjects import SubProject, TYPE_kwargs, TYPE_var
+ from .baseobjects import InterpreterObjectTypeVar, SubProject, TYPE_kwargs, TYPE_var
from ..interpreter import Interpreter
HolderMapType = T.Dict[