Commit 69f67cd
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 b96c59a commit 69f67cd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | | - | |
| 1537 | + | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
| |||
0 commit comments