Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-hitonami committed Jan 25, 2022
1 parent 65ce486 commit 76bb2a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/taichi/lang/ast/ast_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,9 +1081,9 @@ def build_IfExp(ctx, node):
node.ptr = ti_ops.select(node.test.ptr, node.body.ptr,
node.orelse.ptr)
warnings.warn_explicit(
f'Using conditional expression for element-wise select operation on '
f'Taichi vectors/matrices is deprecated. '
f'Please use "ti.select" instead.', DeprecationWarning,
'Using conditional expression for element-wise select operation on '
'Taichi vectors/matrices is deprecated. '
'Please use "ti.select" instead.', DeprecationWarning,
ctx.file, node.lineno + ctx.lineno_offset)
return node.ptr

Expand Down

0 comments on commit 76bb2a5

Please sign in to comment.