26
26
from .linkers import StaticLinker
27
27
from .compilers import Compiler
28
28
29
-
30
29
UNIXY_COMPILER_INTERNAL_LIBS = ['m' , 'c' , 'pthread' , 'dl' , 'rt' ] # type: T.List[str]
31
30
# execinfo is a compiler lib on FreeBSD and NetBSD
32
31
if mesonlib .is_freebsd () or mesonlib .is_netbsd ():
@@ -158,8 +157,8 @@ def __iter__(self) -> T.Iterator[str]:
158
157
def __getitem__ (self , index : int ) -> str : # noqa: F811
159
158
pass
160
159
161
- @T .overload # noqa: F811
162
- def __getitem__ (self , index : slice ) -> T .List [str ]: # noqa: F811
160
+ @T .overload # noqa: F811
161
+ def __getitem__ (self , index : slice ) -> T .MutableSequence [str ]: # noqa: F811
163
162
pass
164
163
165
164
def __getitem__ (self , index ): # noqa: F811
@@ -171,7 +170,7 @@ def __setitem__(self, index: int, value: str) -> None: # noqa: F811
171
170
pass
172
171
173
172
@T .overload # noqa: F811
174
- def __setitem__ (self , index : slice , value : T .List [str ]) -> None : # noqa: F811
173
+ def __setitem__ (self , index : slice , value : T .Iterable [str ]) -> None : # noqa: F811
175
174
pass
176
175
177
176
def __setitem__ (self , index , value ) -> None : # noqa: F811
@@ -312,7 +311,7 @@ def __radd__(self, args: T.Iterable[str]) -> 'CompilerArgs':
312
311
new += self
313
312
return new
314
313
315
- def __eq__ (self , other : T .Any ) -> T .Union [bool , type ( NotImplemented ) ]:
314
+ def __eq__ (self , other : T .Any ) -> T .Union [bool ]:
316
315
self .flush_pre_post ()
317
316
# Only allow equality checks against other CompilerArgs and lists instances
318
317
if isinstance (other , CompilerArgs ):
0 commit comments