Skip to content

Commit

Permalink
[numpy] Fix test failures under NumPy 2.1.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 680790659
Change-Id: I65134d80df59c54b2601bb2445f43f3d75dcac5a
  • Loading branch information
hawkinsp authored and copybara-github committed Oct 1, 2024
1 parent 1917a84 commit d465a9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tensorstore/tensorstore_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ operation.

cls.def(
"__array__",
[](Self& self, std::optional<py::dtype> dtype,
[](Self& self, std::optional<py::dtype> dtype, std::optional<bool> copy,
std::optional<py::object> context) {
return ValueOrThrow(internal_python::InterruptibleWait(
tensorstore::Read<zero_origin>(self.value)));
Expand Down Expand Up @@ -920,7 +920,8 @@ See also:
I/O
)",
py::arg("dtype") = std::nullopt, py::arg("context") = std::nullopt);
py::arg("dtype") = std::nullopt, py::arg("copy") = std::nullopt,
py::arg("context") = std::nullopt);

cls.def(
"resolve",
Expand Down

0 comments on commit d465a9c

Please sign in to comment.