Update pre-commit hooks (#984)

This commit is contained in:
Nripesh Niketan
2024-04-11 18:27:53 +04:00
committed by GitHub
parent 12d4507ee3
commit ffff671273
10 changed files with 37 additions and 44 deletions

View File

@@ -63,8 +63,7 @@ void save(std::shared_ptr<io::Writer> out_stream, array a) {
std::string fortran_order = a.flags().col_contiguous ? "True" : "False";
std::ostringstream header;
header << "{'descr': '" << dtype_to_array_protocol(a.dtype()) << "',"
<< " 'fortran_order': " << fortran_order << ","
<< " 'shape': (";
<< " 'fortran_order': " << fortran_order << "," << " 'shape': (";
for (auto i : a.shape()) {
header << i << ", ";
}