asottile/dead

Global Variables used within Functions are False Positive

Closed this issue · 1 comments

Example:

x = 0
def f():
  global x
  x = 0

The assignment to x inside f, which takes place on line 4, gets reported as never used, even if x is used elsewhere in the program.

imo play stupid games win stupid prizes