-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
acceptedReady for implementationReady for implementationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
numpy.dtype is tripping rule E721. I'm not sure it should be.
x = np.array([1,2,3], dtype=float)
x.dtype == float # <- trips E721.dtype is an object, e.g. a dtype('float64').
While x.dtype == float may not be the best means of testing a dtype, I don't think this is E721.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule