mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-17 11:25:55 +08:00
DOC: Remove out of date comment.
This commit is contained in:
@@ -475,9 +475,6 @@ class LabelArray(ndarray):
|
||||
)
|
||||
|
||||
def __repr__(self):
|
||||
# This happens if you call a ufunc on a LabelArray that changes the
|
||||
# dtype. This is generally an indicator that the array has been used
|
||||
# incorrectly, and it means we're no longer valid for anything.
|
||||
repr_lines = repr(self.as_string_array()).splitlines()
|
||||
repr_lines[0] = repr_lines[0].replace('array(', 'LabelArray(', 1)
|
||||
repr_lines[-1] = repr_lines[-1].rsplit(',', 1)[0] + ')'
|
||||
|
||||
Reference in New Issue
Block a user