Remove references to deprecated NumPy type aliases.
authorVincent Rabaud <vrabaud@google.com>
Thu, 15 Dec 2022 10:16:01 +0000 (11:16 +0100)
committerAlexander Smorkalov <alexander.smorkalov@xperience.ai>
Fri, 23 Dec 2022 10:53:49 +0000 (13:53 +0300)
commitad568edd7f0ebfc12f69847d0d16184279ace176
tree3be9bb7f63328b0df00abe53eaccc8656c6a2991
parent91ac7902496b94e658f56f3d06a93a890b932076
Remove references to deprecated NumPy type aliases.

This change replaces references to a number of deprecated NumPy
type aliases (np.bool, np.int, np.float, np.complex, np.object,
np.str) with their recommended replacement (bool, int, float,
complex, object, str).

Those types were deprecated in 1.20 and are removed in 1.24,
cf https://github.com/numpy/numpy/pull/22607.
modules/dnn/test/pascal_semsegm_test_fcn.py
modules/python/test/test_misc.py
modules/python/test/tst_scene_render.py