-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
PythonacknowledgedGitHub staff acknowledges this issueGitHub staff acknowledges this issuefalse-positivenot securityThis issue does not relate to a security queryThis issue does not relate to a security query
Description
Description of the false positive
The import is used in the sense that succeeding/failing to import sets a global variable.
have_numpy = True
try:
import numpy
except ImportError:
have_numpy = FalseThis pattern is quite common.
URL to the alert on the project page on LGTM.com
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PythonacknowledgedGitHub staff acknowledges this issueGitHub staff acknowledges this issuefalse-positivenot securityThis issue does not relate to a security queryThis issue does not relate to a security query
Type
Fields
Give feedbackNo fields configured for issues without a type.