aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
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/mintro.py
parentcff2fb5950cb37b01df5046cc256826449b3abaa (diff)
downloadmeson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.zip
meson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.tar.gz
meson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.tar.bz2
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/mintro.py')
-rw-r--r--mesonbuild/mintro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 1d1e858..063c5cd 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -429,7 +429,7 @@ def list_deps(coredata: cdata.CoreData, backend: backends.Backend) -> T.List[T.D
d = holder.held_object
if isinstance(d, Dependency) and d.found():
if d.name in result:
- T.cast(T.List[str], result[d.name]['meson_variables']).append(varname)
+ T.cast('T.List[str]', result[d.name]['meson_variables']).append(varname)
else:
result[d.name] = _create_result(d, varname)