From 50fdbbb31d94a2485460e15fbe7ef974fc8e830d Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Tue, 21 Sep 2021 20:12:37 +0200 Subject: MAINT: Override the modules of `np.char` and `np.rec` functions --- numpy/core/defchararray.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index e264fa210..3521e778e 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -2609,6 +2609,7 @@ class chararray(ndarray): return isdecimal(self) +@set_module("numpy.char") def array(obj, itemsize=None, copy=True, unicode=None, order=None): """ Create a `chararray`. @@ -2742,6 +2743,7 @@ def array(obj, itemsize=None, copy=True, unicode=None, order=None): return val.view(chararray) +@set_module("numpy.char") def asarray(obj, itemsize=None, unicode=None, order=None): """ Convert the input to a `chararray`, copying the data only if -- cgit v1.2.1