aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-10-06 23:42:37 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-02-01 17:01:30 -0500
commita21af43200e13fa65e12bdbe5116a0cecc4990b3 (patch)
tree4db989be7c51dd745fa17e09b60d64f64f6f6bcc /mesonbuild/dependencies
parent680b5ff819bf36397ea560f802510bce5b83f6bc (diff)
downloadmeson-a21af43200e13fa65e12bdbe5116a0cecc4990b3.zip
meson-a21af43200e13fa65e12bdbe5116a0cecc4990b3.tar.gz
meson-a21af43200e13fa65e12bdbe5116a0cecc4990b3.tar.bz2
micro-optimize: define typing-only objects in TYPE_CHECKING
Union types that exist solely for use as annotations don't need to be created in normal runs.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/cuda.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py
index 8772427..89e562f 100644
--- a/mesonbuild/dependencies/cuda.py
+++ b/mesonbuild/dependencies/cuda.py
@@ -29,7 +29,7 @@ if T.TYPE_CHECKING:
from ..environment import Environment
from ..compilers import Compiler
-TV_ResultTuple = T.Tuple[T.Optional[str], T.Optional[str], bool]
+ TV_ResultTuple = T.Tuple[T.Optional[str], T.Optional[str], bool]
class CudaDependency(SystemDependency):