File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1311310D-array -> scalar cast, then one can consider manually remedying the
132132situation with either `typing.cast` or a ``# type: ignore`` comment.
133133
134+ Record array dtypes
135+ ~~~~~~~~~~~~~~~~~~~
136+
137+ The dtype of `numpy.recarray`, and the `numpy.rec` functions in general,
138+ can be specified in one of two ways:
139+
140+ * Directly via the ``dtype`` argument.
141+ * With up to five helper arguments that operate via `numpy.format_parser`:
142+ ``formats``, ``names``, ``titles``, ``aligned`` and ``byteorder``.
143+
144+ These two approaches are currently typed as being mutually exclusive,
145+ *i.e.* if ``dtype`` is specified than one may not specify ``formats``.
146+ While this mutual exclusivity is not (strictly) enforced during runtime,
147+ combining both dtype specifiers can lead to unexpected or even downright
148+ buggy behavior.
149+
134150API
135151---
136152
You can’t perform that action at this time.
0 commit comments