Skip to content

Commit 1e47868

Browse files
committed
Fix flake8
1 parent 4492c38 commit 1e47868

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ def f(x):
7474

7575
def test_bool_type(self):
7676
sig = (types.int32, types.int32)
77+
7778
@cuda.jit("void(int32, int32)", debug=True, opt=False)
7879
def f(x, y):
79-
z = x == y
80+
z = x == y # noqa: F841
8081

8182
llvm_ir = f.inspect_llvm(sig)
8283

@@ -87,7 +88,7 @@ def f(x, y):
8788
mdnode_id = match.group(1)
8889

8990
# verify the DIBasicType has correct encoding attribute DW_ATE_boolean
90-
pat = f'!{mdnode_id}\s+=\s+!DIBasicType\(.*DW_ATE_boolean'
91+
pat = rf'!{mdnode_id}\s+=\s+!DIBasicType\(.*DW_ATE_boolean'
9192
match = re.compile(pat).search(llvm_ir)
9293
self.assertIsNotNone(match, msg=llvm_ir)
9394

0 commit comments

Comments
 (0)