You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def f():
pass
x = 6
class F:
x = 5
def f():
pass
print(F.x)
F.f()
Vulture doesn't give any unused notifications for the global var or function. The reason is that they are represented by the same string in self.used_names.
An example with two locals:
def f():
i = 0
if i:
print('hi')
def g():
i = 0
f()
g()
For this one, vulture will not say the i in g() is unused, due to the i in f() being used.
The text was updated successfully, but these errors were encountered:
johndoknjas
changed the title
False negative when method and function have the same name
False negative when a class attribute and global have the same name
Oct 5, 2024
johndoknjas
changed the title
False negative when a class attribute and global have the same name
False negative when two locals or a class attribute and global have the same name
Oct 23, 2024
Vulture doesn't give any unused notifications for the global var or function. The reason is that they are represented by the same string in
self.used_names
.An example with two locals:
For this one, vulture will not say the
i
ing()
is unused, due to thei
inf()
being used.The text was updated successfully, but these errors were encountered: