Skip to content

Commit

Permalink
pylint: enable unnecessary-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker authored and eli-schwartz committed Oct 3, 2022
1 parent 20d76b8 commit f11ebf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ disable=
undefined-loop-variable,
unidiomatic-typecheck,
unnecessary-dict-index-lookup,
unnecessary-lambda,
unnecessary-lambda-assignment,
unsubscriptable-object,
unused-argument,
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ def get_introspection_data(self, target_id: str, target: build.Target) -> T.List
source_list += [os.path.join(self.source_dir, j)]
elif isinstance(j, (build.CustomTarget, build.BuildTarget)):
source_list += [os.path.join(self.build_dir, j.get_subdir(), o) for o in j.get_outputs()]
source_list = list(map(lambda x: os.path.normpath(x), source_list))
source_list = [os.path.normpath(s) for s in source_list]

compiler: T.List[str] = []
if isinstance(target, build.CustomTarget):
Expand Down

0 comments on commit f11ebf2

Please sign in to comment.