diff options
author | Tristan Partin <tristan@partin.io> | 2023-07-12 17:47:12 -0500 |
---|---|---|
committer | Tristan Partin <tristan@partin.io> | 2023-07-12 18:56:06 -0500 |
commit | d4bcf05c39e650d9651b5f2c60e7c12d59367e9c (patch) | |
tree | 1d635627d62aba0d77142583c7d1479d5e7b4d31 /mesonbuild/compilers/mixins/visualstudio.py | |
parent | 921c2370a722cbaa42bd256c699fae3185084939 (diff) | |
download | meson-d4bcf05c39e650d9651b5f2c60e7c12d59367e9c.zip meson-d4bcf05c39e650d9651b5f2c60e7c12d59367e9c.tar.gz meson-d4bcf05c39e650d9651b5f2c60e7c12d59367e9c.tar.bz2 |
Annotate naked fundamental Python types
Although mypy wasn't complaining, pyright was.
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index cd71558..54a95bb 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -277,7 +277,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): @classmethod def native_args_to_unix(cls, args: T.List[str]) -> T.List[str]: - result = [] + result: T.List[str] = [] for arg in args: if arg.startswith(('/LIBPATH:', '-LIBPATH:')): result.append('-L' + arg[9:]) @@ -491,7 +491,7 @@ class ClangClCompiler(VisualStudioLikeCompiler): def get_dependency_compile_args(self, dep: 'Dependency') -> T.List[str]: if dep.get_include_type() == 'system': - converted = [] + converted: T.List[str] = [] for i in dep.get_compile_args(): if i.startswith('-isystem'): converted += ['/clang:' + i] |