aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-26 09:37:39 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-09-24 10:36:05 -0700
commit9795323b8649b8615e55cad981d235e432afef02 (patch)
tree4a53251558aca1906f776893604d45ff03cf74dc /mesonbuild/build.py
parent92b21a0045e32229f5b3b01429b683fbe1f33abe (diff)
downloadmeson-9795323b8649b8615e55cad981d235e432afef02.zip
meson-9795323b8649b8615e55cad981d235e432afef02.tar.gz
meson-9795323b8649b8615e55cad981d235e432afef02.tar.bz2
pylint: check for duplicate imports
I ran into one of these from LGTM, and it would be nice if pylint could warn me as part of my local development process instead of waiting for the CI to tell me.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 464b096..01d2719 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -33,7 +33,7 @@ from .mesonlib import (
extract_as_list, typeslistify, stringlistify, classify_unity_sources,
get_filenames_templates_dict, substitute_values, has_path_sep,
OptionKey, PerMachineDefaultable,
- MesonBugException, FileOrString,
+ MesonBugException,
)
from .compilers import (
Compiler, is_object, clink_langs, sort_clink, lang_suffixes,
@@ -902,7 +902,7 @@ class BuildTarget(Target):
if t in self.kwargs:
self.kwargs[t] = listify(self.kwargs[t], flatten=True)
- def extract_objects(self, srclist: T.List[FileOrString]) -> ExtractedObjects:
+ def extract_objects(self, srclist: T.List['FileOrString']) -> ExtractedObjects:
obj_src: T.List['File'] = []
sources_set = set(self.sources)
for src in srclist: