Open
Description
Description of the false positive
The import is not unused. If I delete it, I get the error
Traceback (most recent call last):
File "examples/bootstrap.py", line 53, in <module>
app.layout = html.Div([navbar.run(), body.run()])
File "/Users/jks/code/htexpr/htexpr/htexpr.py", line 88, in run
return eval(self.code, {**frame.f_globals, **frame.f_locals, **bindings})
File "<unknown>", line 1, in <module>
NameError: name 'dcc' is not defined
The point of this liibrary is that it compiles strings into Python code objects, which are then evaluated. This is probably difficult to analyze statically without executing the code, so I wouldn't assign a high priority to this, but since the page asked me to report false positives, here goes.
URL to the alert on the project page on LGTM.com