Skip to content

Commit 1f787c6

Browse files
committed
Fix lint error
1 parent 965bc30 commit 1f787c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/tir/schedule/trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,6 @@ def show(self, style: Optional[str] = None, black_format: bool = False) -> None:
285285

286286
if black_format is None:
287287
env = os.environ.get("TVM_BLACK_FORMAT")
288-
black_format = env and int(env)
288+
black_format = bool(env and int(env))
289289

290290
cprint(str(self), style=style, black_format=black_format)

0 commit comments

Comments
 (0)