From fc3eac36aadc0e70d6b9d18f549c3c909e05d6a7 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Thu, 14 Jul 2016 10:54:49 -0400 Subject: [PATCH] DOC: Update LabelArray docstring. --- zipline/lib/labelarray.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zipline/lib/labelarray.py b/zipline/lib/labelarray.py index 4616b38a..0cf1e967 100644 --- a/zipline/lib/labelarray.py +++ b/zipline/lib/labelarray.py @@ -231,8 +231,9 @@ class LabelArray(ndarray): In this case, obj will be None. We treat this as an error case and fail. - 2. Someone (most likely our own __new__) calls - other_array.view(type=LabelArray). + 2. Someone (most likely our own __new__) does:: + + >>> other_array.view(type=LabelArray) # doctest: +SKIP In this case, `self` will be the new LabelArray instance, and ``obj` will be the array on which ``view`` is being called.