Commit a3be114
committed
Do not call
It is not any safer than normal property access.
It feels like the intent might have been `hasattr()` instead of `getattr()`,
but the initial commit e2086c3 appears to :
- assume any attribute `dtype` is of type `numpy.dtype`,
- test whether `numpy.dtype.names` is a list of fields names or `None`.
https://numpy.org/doc/stable/reference/generated/numpy.dtype.names.htmlgetattr with a constant value1 parent 74885be commit a3be114
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
| 1526 | + | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| |||
0 commit comments