We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088ee14 commit bc94282Copy full SHA for bc94282
interface/default.py
@@ -81,7 +81,7 @@ def accessed_attributes_of_local(f, local_name):
81
# another name.
82
for first, second in sliding_window(dis.get_instructions(f), 2):
83
if first.opname == 'LOAD_FAST' and first.argval == local_name:
84
- if second.opname in ('LOAD_ATTR', 'STORE_ATTR'):
+ if second.opname in ('LOAD_ATTR', 'LOAD_METHOD', 'STORE_ATTR'):
85
used.add(second.argval)
86
return used
87
0 commit comments