diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-14 15:36:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-22 09:12:54 -0700 |
commit | 86da1311299be28c178b16c3b83844c1374c392d (patch) | |
tree | 5c7c84399909f3bb5eff5b6f33e371b145a94bf5 /mesonbuild/minstall.py | |
parent | 5d3a60ae65f44ea300d61dd0f08ad01618a105a6 (diff) | |
download | meson-86da1311299be28c178b16c3b83844c1374c392d.zip meson-86da1311299be28c178b16c3b83844c1374c392d.tar.gz meson-86da1311299be28c178b16c3b83844c1374c392d.tar.bz2 |
mesonlib: Fix FileMode type annotations
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index d91f61b..9bb5ba7 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -130,7 +130,8 @@ def append_to_log(lf: T.TextIO, line: str) -> None: lf.flush() -def set_chown(path: str, user: T.Optional[str] = None, group: T.Optional[str] = None, +def set_chown(path: str, user: T.Union[str, int, None] = None, + group: T.Union[str, int, None] = None, dir_fd: T.Optional[int] = None, follow_symlinks: bool = True) -> None: # shutil.chown will call os.chown without passing all the parameters # and particularly follow_symlinks, thus we replace it temporary |