summaryrefslogtreecommitdiff
path: root/mesonbuild/arglist.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-08-30 13:11:24 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-08 20:15:57 +0200
commit3dbfe8f75a17966917879e2be6037b262d807bac (patch)
treea8c2b52799337efb245dd0a72221726714c53465 /mesonbuild/arglist.py
parent1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1 (diff)
downloadmeson-3dbfe8f75a17966917879e2be6037b262d807bac.tar.gz
typing: fully annotate arglist
Diffstat (limited to 'mesonbuild/arglist.py')
-rw-r--r--mesonbuild/arglist.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py
index 4ab7d0990..b7fa749ee 100644
--- a/mesonbuild/arglist.py
+++ b/mesonbuild/arglist.py
@@ -164,7 +164,7 @@ class CompilerArgs(collections.abc.MutableSequence):
def __getitem__(self, index: slice) -> T.MutableSequence[str]: # noqa: F811
pass
- def __getitem__(self, index): # noqa: F811
+ def __getitem__(self, index): # type: ignore # noqa: F811
self.flush_pre_post()
return self._container[index]
@@ -176,7 +176,7 @@ class CompilerArgs(collections.abc.MutableSequence):
def __setitem__(self, index: slice, value: T.Iterable[str]) -> None: # noqa: F811
pass
- def __setitem__(self, index, value) -> None: # noqa: F811
+ def __setitem__(self, index, value) -> None: # type: ignore # noqa: F811
self.flush_pre_post()
self._container[index] = value
@@ -242,7 +242,7 @@ class CompilerArgs(collections.abc.MutableSequence):
new = self.copy()
else:
new = self
- return self.compiler.unix_args_to_native(new._container)
+ return T.cast(T.List[str], self.compiler.unix_args_to_native(new._container))
def append_direct(self, arg: str) -> None:
'''