Skip to content

Commit

Permalink
fixes numpy#23366
Browse files Browse the repository at this point in the history
Added documentation on boolean type ``b1`` which was previously not mentioned, causing confusion.
  • Loading branch information
dvorst committed Aug 22, 2023
1 parent 6e5a677 commit 3175100
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/source/reference/arrays.dtypes.rst
Expand Up @@ -230,12 +230,12 @@ One-character strings
Array-protocol type strings (see :ref:`arrays.interface`)
The first character specifies the kind of data and the remaining
characters specify the number of bytes per item, except for Unicode,
where it is interpreted as the number of characters. The item size
must correspond to an existing type, or an error will be raised. The
supported kinds are
where it is interpreted as the number of characters, and for ``b1`` which
represents boolean. The item size must correspond to an existing type,
or an error will be raised. The supported kinds are

================ ========================
``'?'`` boolean
================= ========================
``'?'``, ``'b1'`` boolean
``'b'`` (signed) byte
``'B'`` unsigned byte
``'i'`` (signed) integer
Expand All @@ -248,7 +248,7 @@ Array-protocol type strings (see :ref:`arrays.interface`)
``'S'``, ``'a'`` zero-terminated bytes (not recommended)
``'U'`` Unicode string
``'V'`` raw data (:class:`void`)
================ ========================
================= ========================

.. admonition:: Example

Expand Down

0 comments on commit 3175100

Please sign in to comment.