summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-05-31 21:19:43 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-07-08 18:13:06 -0500
commit4a04e89615a81ccfdc37fdee0d1cb3bc9de1a04a (patch)
tree4ae8a0a97a206b527e64389971307c8e9a5443bf /numpy/array_api/tests/test_array_object.py
parent9ceeb97debefda7931ab8312d50f3cc4cb81c956 (diff)
downloadnumpy-4a04e89615a81ccfdc37fdee0d1cb3bc9de1a04a.tar.gz
Add somewhat disgusting hacks for datetime support
The can guess the dtype unit for almost anything that looks like a string (including numpy strings). So they support looking at every array element very well (in order to find the correct dtype). We thus need two hacks to support them: 1. Ensure that any string-like object is directly handled by the datetime (using is_known_scalar_type) 2. Have a string/bytes->datetime special case in the dtype from array discovery path which should only special case `object` arrays. (at least I would prefer that).
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions