aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/kwargs.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-14 15:36:16 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-22 09:12:54 -0700
commit596c8d4af50d0e5a25ee0ee1e177e46b6c7ad22e (patch)
tree1b7715c25b1706e97c5e8bce266982206ca54a07 /mesonbuild/interpreter/kwargs.py
parent3d940fec980f61c8b5a6cb74a6af61c59c307db9 (diff)
downloadmeson-596c8d4af50d0e5a25ee0ee1e177e46b6c7ad22e.zip
meson-596c8d4af50d0e5a25ee0ee1e177e46b6c7ad22e.tar.gz
meson-596c8d4af50d0e5a25ee0ee1e177e46b6c7ad22e.tar.bz2
interpreter: use typed_kwargs for install_subdir
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r--mesonbuild/interpreter/kwargs.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index 1cc2082..e9042af 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -4,13 +4,13 @@
"""Keyword Argument type annotations."""
-from mesonbuild import coredata
import typing as T
from typing_extensions import TypedDict, Literal
from .. import build
-from ..mesonlib import MachineChoice, File
+from .. import coredata
+from ..mesonlib import MachineChoice, File, FileMode
from .interpreterobjects import EnvironmentVariablesObject
@@ -102,3 +102,11 @@ class DependencyMethodPartialDependency(TypedDict):
class BuildTargeMethodExtractAllObjects(TypedDict):
recursive: bool
+
+class FuncInstallSubdir(TypedDict):
+
+ install_dir: str
+ strip_directory: bool
+ exclude_files: T.List[str]
+ exclude_directories: T.List[str]
+ install_mode: FileMode