Skip to content

Commit a7da8e3

Browse files
committed
Mark a possible bug as TODO to fix
1 parent c59a759 commit a7da8e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unpythonic/syntax/letdo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def find_deletes(tree, collect, **kw):
301301
names = []
302302
lines = []
303303
for j, expr in enumerate(tree.elts, start=1):
304+
# TODO: do we need the recursion here? Won't this trigger false positives for nested do[] expressions?
304305
expr, newnames = find_localdefs.recurse_collect(expr)
305306
expr, deletednames = find_deletes.recurse_collect(expr)
306307
assert not (newnames and deletednames), "a do-item may have only local[] or delete[], not both"

0 commit comments

Comments
 (0)