diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-10 12:03:52 -0700 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-08-20 18:57:19 +0200 |
commit | ccab6d9c84c62755b1da74a6a3ba8c52b7ce8343 (patch) | |
tree | 5910dfea0c044acecc45527ae0c89f5dbf4e5336 | |
parent | 9fb19ed9237da5643bbf306f13d7710423f5e6b0 (diff) | |
download | meson-ccab6d9c84c62755b1da74a6a3ba8c52b7ce8343.zip meson-ccab6d9c84c62755b1da74a6a3ba8c52b7ce8343.tar.gz meson-ccab6d9c84c62755b1da74a6a3ba8c52b7ce8343.tar.bz2 |
backend/backends: Add type annotations to TargetInstallData
-rw-r--r-- | mesonbuild/backend/backends.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index b608393..4d44031 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -113,10 +113,13 @@ class InstallData: self.version = version class TargetInstallData: + + # TODO: install_mode should just always be a FileMode object + def __init__(self, fname: str, outdir: str, aliases: T.Dict[str, str], strip: bool, - install_name_mappings: T.Dict, rpath_dirs_to_remove: T.Set[bytes], - install_rpath: str, install_mode: 'FileMode', subproject: str, - optional: bool = False, tag: T.Optional[str] = None): + install_name_mappings: T.Mapping[str, str], rpath_dirs_to_remove: T.Set[bytes], + install_rpath: str, install_mode: T.Optional['FileMode'], + subproject: str, optional: bool = False, tag: T.Optional[str] = None): self.fname = fname self.outdir = outdir self.aliases = aliases |