aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib/universal.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-01-02 21:48:28 +0200
committerGitHub <noreply@github.com>2022-01-02 21:48:28 +0200
commitc8733f65b3303564ecfdc0744bd66c32487d8e09 (patch)
tree6bc526707178358e2f649e009e90519c283cdf1c /mesonbuild/mesonlib/universal.py
parent117ba230718d20903e91f210e8ae9a79f8c3a473 (diff)
parent812ad2e6d19148f8b93d6051620ad185222436f1 (diff)
downloadmeson-c8733f65b3303564ecfdc0744bd66c32487d8e09.zip
meson-c8733f65b3303564ecfdc0744bd66c32487d8e09.tar.gz
meson-c8733f65b3303564ecfdc0744bd66c32487d8e09.tar.bz2
Merge pull request #9757 from eli-schwartz/broken-types
Fix some broken type annotations
Diffstat (limited to 'mesonbuild/mesonlib/universal.py')
-rw-r--r--mesonbuild/mesonlib/universal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py
index bae80d4..493acef 100644
--- a/mesonbuild/mesonlib/universal.py
+++ b/mesonbuild/mesonlib/universal.py
@@ -425,7 +425,7 @@ class File(HoldableObject):
def suffix(self) -> str:
return os.path.splitext(self.fname)[1][1:].lower()
- def endswith(self, ending: str) -> bool:
+ def endswith(self, ending: T.Union[str, T.Tuple[str, ...]]) -> bool:
return self.fname.endswith(ending)
def split(self, s: str, maxsplit: int = -1) -> T.List[str]: