Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Mar 13, 2023
1 parent b87a9b8 commit 8de5df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- Speed up `repr` and `to_string` for `Interval` instances (see [#76](https://github.com/AlexandreDecan/portion/issues/76), adm271828).
- Some internal changes to ease subclassing:
* `from_string` and `from_data` accepts a `klass` parameter to specify which class should be used to create `Interval` instances (default is `Interval`).
* (Internal) Add a `klass` parameter for `open`, `closed`, `openclosed`, `closedopen`, `singleton` and `empty` (default is `Interval`).
* (Experimental) Add a `_klass` class attribute in `IntervalDict` to specify how to create `Interval` instances (default is `Interval`).
* Add a `klass` parameter for `open`, `closed`, `openclosed`, `closedopen`, `singleton` and `empty` (default is `Interval`).
* Add a `_klass` class attribute in `IntervalDict` to specify how to create `Interval` instances (default is `Interval`).
* `IntervalDict` uses `self.__class__` to preserve subclasses when creating new instances.


Expand Down

0 comments on commit 8de5df6

Please sign in to comment.