Apply ruff flake8-comprehensions (#21694)
This commit is contained in:
@@ -61,7 +61,7 @@ class Extract:
|
||||
assert outputfile is not None and not os.path.isfile(outputfile), f"{outputfile}"
|
||||
if subset_list is not None:
|
||||
with open(os.path.realpath(subset_list)) as f:
|
||||
self.subset_list = set(map(lambda x: self._vqa_file_split()[0], tryload(f)))
|
||||
self.subset_list = {self._vqa_file_split()[0] for x in tryload(f)}
|
||||
else:
|
||||
self.subset_list = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user