|
66 | 66 | def get_numpy_vector(input_list: list) -> Any: |
67 | 67 | try: |
68 | 68 | import numpy as np |
| 69 | + |
69 | 70 | return np.array(input_list) |
70 | 71 | except ModuleNotFoundError: |
71 | 72 | return input_list |
@@ -309,21 +310,28 @@ class TestInsertManyWithTypedDict(TypedDict): |
309 | 310 | [ |
310 | 311 | ( |
311 | 312 | [ |
312 | | - DataObject(properties={"name": "some numpy one"}, vector=get_numpy_vector([1, 2, 3])), |
| 313 | + DataObject( |
| 314 | + properties={"name": "some numpy one"}, vector=get_numpy_vector([1, 2, 3]) |
| 315 | + ), |
313 | 316 | ], |
314 | 317 | False, |
315 | 318 | ), |
316 | 319 | ( |
317 | 320 | [ |
318 | | - DataObject(properties={"name": "some numpy one"}, vector=get_numpy_vector([1, 2, 3])), |
319 | | - DataObject(properties={"name": "some numpy two"}, vector=get_numpy_vector([11, 12, 13])), |
| 321 | + DataObject( |
| 322 | + properties={"name": "some numpy one"}, vector=get_numpy_vector([1, 2, 3]) |
| 323 | + ), |
| 324 | + DataObject( |
| 325 | + properties={"name": "some numpy two"}, vector=get_numpy_vector([11, 12, 13]) |
| 326 | + ), |
320 | 327 | ], |
321 | 328 | False, |
322 | 329 | ), |
323 | 330 | ( |
324 | 331 | [ |
325 | 332 | DataObject( |
326 | | - properties={"name": "some numpy 2d"}, vector=get_numpy_vector([[1, 2, 3], [11, 12, 13]]) |
| 333 | + properties={"name": "some numpy 2d"}, |
| 334 | + vector=get_numpy_vector([[1, 2, 3], [11, 12, 13]]), |
327 | 335 | ), |
328 | 336 | ], |
329 | 337 | True, |
|
0 commit comments