Skip to content

Commit b384ed1

Browse files
Mypy
1 parent 9ea2666 commit b384ed1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tools/jit/_targets.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@ def build(self, out: pathlib.Path, *, force: bool = False) -> None:
236236
match = re.search(r"CONFIG_ARGS\s*=\s*'(.*)'", makefile.read_text())
237237
assert match is not None
238238
config_args = match.group(1)
239-
copy_stencils = config_args and all(
240-
arg in JIT_ARGS for arg in config_args.split()
241-
)
239+
if config_args:
240+
copy_stencils = all(
241+
arg in JIT_ARGS for arg in config_args.split()
242+
)
242243

243244
copy_stencils = copy_stencils and self.triple in SUPPORTED_TRIPLES
244245
if copy_stencils:

0 commit comments

Comments
 (0)