From 23b84edbe84e150eb246dd3ba4cd89e12286e37a 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 | 17 ++++------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index d21e7fcb..38f1786a 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). @@ -294,9 +292,6 @@ provided for the column calculation. 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. @@ -371,8 +366,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 ef3f6fe2..c46ddee4 100644 --- a/src/tablib/core.py +++ b/src/tablib/core.py @@ -457,6 +457,10 @@ 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) @@ -544,17 +548,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: @@ -638,8 +631,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.