Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changelog fixes #171

Merged
merged 2 commits into from
Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 6 additions & 50 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,29 @@
Change Log
==========

2.0.0 - 2021-08-23
2.0.1 - 2022-??-??
------------------

Breaking Changes
""""""""""""""""
* Added Python 3.10 to tests & classifiers
* Added equality testing support to MappedRange

2.0.0 - 2021-08-23
------------------

* Drop support for Python 2.7, 3.4 & 3.5
* When multiplying bags, the cartesian product creates a tuple instead of adding
the elements.
* bags no longer inherit from Set
* can no longer compare as equal to Sets
* Rename and expose bag and set base classes
* `_basebag` -> :class:`Bag`
* `_basesetlist` -> :class:`SetList`

Added
"""""

* Added :class:`IndexedDict`
* Improve efficiency for large bag operations
* Add :meth:`setlist.swap`
* Add :meth:`bag.count`, :class:`CountsView` & :class:`UniqueElementsView`
* Add :meth:`bag.issubset` and :meth:`issuperset`
* Add support for Python 3.8 & 3.9
* Add :class:`Sentinel`
* Make :class:`MappedRange` a class instead of a namedtuple
* Add change log

Fixed
"""""

* tuples passed to the bijection constructor must have len == 2, not >= 2

Deprecated
""""""""""

Removed
"""""""

1.0.3 - 2019-11-23
------------------

Breaking Changes
""""""""""""""""

* Drop support for Python 2.6 & 3.3

* When multiplying bags, the cartesian product creates a tuple instead of adding
the elements.
* bags no longer inherit from Set
* can no longer compare as equal to Sets
* Rename and expose bag and set base classes
* `_basebag` -> :class:`Bag`
* `_basesetlist` -> :class:`SetList`

Added
"""""

* Added :class:`IndexedDict`
* Improve efficiency for large bag operations
* Add :meth:`setlist.swap`
Expand All @@ -71,15 +36,6 @@ Added
* Make :class:`MappedRange` a class instead of a namedtuple
* Add change log

Fixed
"""""

Deprecated
""""""""""

Removed
"""""""

1.0.2 - 2018-06-30
------------------

Expand Down
2 changes: 1 addition & 1 deletion collections_extended/bags.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def nlargest(self, n=None):
def counts(self):
"""Return a view of the unique elements in self and their counts.

.. versionadded:: 1.1
.. versionadded:: 1.0.3
"""
return CountsView(self)

Expand Down
6 changes: 3 additions & 3 deletions collections_extended/indexed_dict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""IndexedDict class definition.

.. versionadded:: 1.1
.. versionadded:: 1.0.3
"""
from collections.abc import MutableMapping

Expand Down Expand Up @@ -38,7 +38,7 @@ def get(self, key=NOT_SET, index=NOT_SET, default=NOT_SET, d=NOT_SET):

If no value is found, return `default` (`None` by default).

.. deprecated :: 1.1
.. deprecated :: 1.0.3

The `d` parameter has been renamed `default`. `d` will be removed in
some future version.
Expand Down Expand Up @@ -91,7 +91,7 @@ def pop(self, key=NOT_SET, index=NOT_SET, default=NOT_SET, d=NOT_SET):

This is generally O(N) unless removing last item, then O(1).

.. deprecated :: 1.1
.. deprecated :: 1.0.3

The `d` parameter has been renamed `default`. `d` will be removed in
some future version.
Expand Down
2 changes: 1 addition & 1 deletion collections_extended/setlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def sort(self, *args, **kwargs):
def swap(self, i, j):
"""Swap the values at indices i & j.

.. versionadded:: 1.1
.. versionadded:: 1.0.3
"""
i = self._fix_neg_index(i)
j = self._fix_neg_index(j)
Expand Down