From 59ead8e5f0494b464852ff53c3f5c8b10c4578ea Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 20 Dec 2023 21:51:37 +0100 Subject: [PATCH] Remove versionchanged/added directives from before 1.0 --- docs/tutorial.rst | 7 ------- src/tablib/core.py | 19 +++++-------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index e5cd12bc..343ad72b 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -225,8 +225,6 @@ And now for something completely different. Dynamic Columns --------------- -.. versionadded:: 0.8.3 - Thanks to Josh Ourisman, Tablib now supports adding dynamic columns. A dynamic column is a single callable object (*e.g.* a function). @@ -285,9 +283,6 @@ Adding this function to our dataset as a dynamic column would result in: :: Filtering Datasets with Tags ---------------------------- -.. versionadded:: 0.9.0 - - When constructing a :class:`Dataset` object, you can add tags to rows by specifying the ``tags`` parameter. This allows you to filter your :class:`Dataset` later. @@ -362,8 +357,6 @@ The resulting ``students.xls`` file will contain a separate spreadsheet for each Separators ---------- -.. versionadded:: 0.8.2 - When constructing a spreadsheet, it's often useful to create a blank row containing information on the upcoming data. So, diff --git a/src/tablib/core.py b/src/tablib/core.py index a7ebff2b..0abbcff9 100644 --- a/src/tablib/core.py +++ b/src/tablib/core.py @@ -446,7 +446,11 @@ def insert(self, index, row, tags=()): The default behaviour is to insert the given row to the :class:`Dataset` object at the given index. - """ + + You can add :ref:`tags ` to the row you are inserting. + This gives you the ability to :method:`filter ` your + :class:`Dataset` later. + """ self._validate(row) self._data.insert(index, Row(row, tags=tags)) @@ -529,17 +533,6 @@ def insert_col(self, index, col=None, header=None): that row. See :ref:`dyncols` for an in-depth example. - - .. versionchanged:: 0.9.0 - If inserting a column, and :attr:`Dataset.headers` is set, the - header attribute must be set, and will be considered the header for - that row. - - .. versionadded:: 0.9.0 - If inserting a row, you can add :ref:`tags ` to the row you are inserting. - This gives you the ability to :method:`filter ` your - :class:`Dataset` later. - """ if col is None: @@ -622,8 +615,6 @@ def get_col(self, index): def add_formatter(self, col, handler): """Adds a formatter to the :class:`Dataset`. - .. versionadded:: 0.9.5 - :param col: column to. Accepts index int or header str. :param handler: reference to callback function to execute against each cell value.