aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-08-21 15:04:37 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-24 12:14:13 -0700
commit79d1ecd5bc550395ca62ebecdcf37a4c40d0e1cc (patch)
treecc32eaf48c5f14830abf059c88cc87802d6040c4 /mesonbuild/mesonlib.py
parentce04a279ae1f782983e448deb8b9b5d88c7921ad (diff)
downloadmeson-79d1ecd5bc550395ca62ebecdcf37a4c40d0e1cc.zip
meson-79d1ecd5bc550395ca62ebecdcf37a4c40d0e1cc.tar.gz
meson-79d1ecd5bc550395ca62ebecdcf37a4c40d0e1cc.tar.bz2
compilers/compilers: Fully type annotate
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index dd2fe8e..17d2733 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -34,6 +34,8 @@ if T.TYPE_CHECKING:
from .compilers.compilers import CompilerType
from .interpreterbase import ObjectHolder
+ FileOrString = T.Union['File', str]
+
_T = T.TypeVar('_T')
_U = T.TypeVar('_U')