MCPcopy Create free account
hub / github.com/ml-explore/mlx / repr_array

Function repr_array

python/mlx/_reprlib_fix.py:9–13  ·  view source on GitHub ↗
(self, x, maxlevel)

Source from the content-addressed store, hash-verified

7
8
9def repr_array(self, x, maxlevel):
10 if isinstance(x, array.array):
11 return _old_repr_array(self, x, maxlevel)
12 else:
13 return self.repr_instance(x, maxlevel)
14
15
16reprlib.Repr.repr_array = repr_array

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected