diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-08-30 13:11:24 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-08 20:15:57 +0200 |
commit | 3dbfe8f75a17966917879e2be6037b262d807bac (patch) | |
tree | a8c2b52799337efb245dd0a72221726714c53465 /mesonbuild/compilers | |
parent | 1217cf9a3bf7a49b68539ea1649ad5d8289ca5d1 (diff) | |
download | meson-3dbfe8f75a17966917879e2be6037b262d807bac.zip meson-3dbfe8f75a17966917879e2be6037b262d807bac.tar.gz meson-3dbfe8f75a17966917879e2be6037b262d807bac.tar.bz2 |
typing: fully annotate arglist
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/intel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/intel.py b/mesonbuild/compilers/mixins/intel.py index fbbfdc5..eb4b10d 100644 --- a/mesonbuild/compilers/mixins/intel.py +++ b/mesonbuild/compilers/mixins/intel.py @@ -69,7 +69,7 @@ class IntelGnuLikeCompiler(GnuLikeCompiler): 's': ['-Os'], } - def __init__(self): + def __init__(self) -> None: super().__init__() # As of 19.0.0 ICC doesn't have sanitizer, color, or lto support. # @@ -152,7 +152,7 @@ class IntelVisualStudioLikeCompiler(VisualStudioLikeCompiler): super().__init__(target) self.id = 'intel-cl' - def compile(self, code, *, extra_args: T.Optional[T.List[str]] = None, **kwargs) -> T.Iterator['subprocess.Popen']: + def compile(self, code: str, *, extra_args: T.Optional[T.List[str]] = None, **kwargs) -> T.Iterator['subprocess.Popen']: # This covers a case that .get('foo', []) doesn't, that extra_args is if kwargs.get('mode', 'compile') != 'link': extra_args = extra_args.copy() if extra_args is not None else [] |