mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 16:25:33 +07:00
- treat deletion by slice and subscription expressions as read access - delete instruction in dataflow only inserted for PyReferenceExpression GitOrigin-RevId: 72ae5e964a1e287e007dabb8f41433b284523a02
5 lines
220 B
Python
5 lines
220 B
Python
def foo(param):
|
|
local_var = "something"
|
|
if param:
|
|
del local_var
|
|
print(<warning descr="Local variable 'local_var' might be referenced before assignment">local_var</warning>) # deleted in 'true' branch |