Skip to content

Commit 89a50fa

Browse files
hawkinspcopybara-github
authored andcommitted
[NumPy] 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). NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy. PiperOrigin-RevId: 495634478
1 parent c0d52ca commit 89a50fa

File tree

1 file changed

+3
-3
lines changed
  • tensorflow_graphics/geometry/representation/mesh/tests

1 file changed

+3
-3
lines changed

tensorflow_graphics/geometry/representation/mesh/tests/utils_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ def test_get_degree_based_edge_weights_invalid_edges_raised(
102102
utils.get_degree_based_edge_weights(invalid_input)
103103

104104
@parameterized.parameters(
105-
(np.bool, "must be a numpy float type"),
106-
(np.int, "must be a numpy float type"),
107-
(np.complex, "must be a numpy float type"),
105+
(bool, "must be a numpy float type"),
106+
(int, "must be a numpy float type"),
107+
(complex, "must be a numpy float type"),
108108
(np.uint, "must be a numpy float type"),
109109
(np.int16, "must be a numpy float type"),
110110
)

0 commit comments

Comments
 (0)