Skip to content

Commit 38bc8d1

Browse files
Update test result
1 parent 125cea5 commit 38bc8d1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
"""https://github.com/pylint-dev/pylint/issues/9875"""
12
# value = 0
23
for idx, value in enumerate(iterable=[1, 2, 3]):
34
print(f'{idx=} {value=}')
5+
# +1: [undefined-loop-variable, undefined-loop-variable]
46
for idx, value in enumerate(iterable=[value-1, value-2*1]):
57
print(f'{idx=} {value=}')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
undefined-loop-variable:6:38:6:43::Using possibly undefined loop variable 'value':UNDEFINED
2+
undefined-loop-variable:6:47:6:52::Using possibly undefined loop variable 'value':UNDEFINED

0 commit comments

Comments
 (0)