If we have bytes, decode them to unicode.
(s)
| 8 | |
| 9 | |
| 10 | def ensure_decoded(s) -> str: |
| 11 | """ |
| 12 | If we have bytes, decode them to unicode. |
| 13 | """ |
| 14 | if isinstance(s, (np.bytes_, bytes)): |
| 15 | s = s.decode(get_option("display.encoding")) |
| 16 | return s |
| 17 | |
| 18 | |
| 19 | def result_type_many(*arrays_and_dtypes): |
no test coverage detected