Skip to content

Commit

Permalink
Remove versionchanged/added directives from before 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Dec 20, 2023
1 parent 92a7535 commit 59ead8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
7 changes: 0 additions & 7 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,

Expand Down
19 changes: 5 additions & 14 deletions src/tablib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tags>` to the row you are inserting.
This gives you the ability to :method:`filter <Dataset.filter>` your
:class:`Dataset` later.
"""

self._validate(row)
self._data.insert(index, Row(row, tags=tags))
Expand Down Expand Up @@ -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 <tags>` to the row you are inserting.
This gives you the ability to :method:`filter <Dataset.filter>` your
:class:`Dataset` later.
"""

if col is None:
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 59ead8e

Please sign in to comment.