From 30da9326e30ee7f25f5b973787cc1f9de57a000b Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 20 Oct 2015 16:42:02 -0700 Subject: [PATCH] Fix Table.take docstring (closes #134) --- datascience/tables.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/datascience/tables.py b/datascience/tables.py index 1aa6ca114..299f98249 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -170,8 +170,10 @@ def __init__(self, columns=None, labels=None, self.take = _Taker(self) # This, along with a snippet below, is necessary for Sphinx to - # correctly load the `take` docstring - take = _Taker(None) + # correctly load the `take` docstring. The definition will be + # over-ridden during class instantiation. + def take(cls): + raise NotImplementedError() @classmethod def empty(cls, column_labels=None):