Skip to content

Commit 87d4b57

Browse files
authored
Merge pull request #316 from BCG-Gamma/dev/2.0.dev6
BUILD: release pytools 2.0.dev6
2 parents b948a99 + ab51ace commit 87d4b57

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

RELEASE_NOTES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ and is now subject to static type checking with :mod:`mypy`.
3434
function :func:`.make_expression`
3535
- API: remove method ``get_class_id`` from class :class:`.HasExpressionRepr`
3636

37+
``pytools.fit``
38+
^^^^^^^^^^^^^^^
39+
40+
- API: method :meth:`.FittableMixin.ensure_fitted` is now public, replacing the formerly
41+
private method ``_ensure_fitted()``
42+
3743
``pytools.parallelization``
3844
^^^^^^^^^^^^^^^^^^^^^^^^^^^
3945

src/pytools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
22
A collection of Python extensions and tools used in BCG GAMMA's open-source libraries.
33
"""
4-
__version__ = "2.0.dev5"
4+
__version__ = "2.0.dev6"

src/pytools/fit/_fit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ def is_fitted(self) -> bool:
6666
"""
6767
pass
6868

69-
def _ensure_fitted(self) -> None:
69+
def ensure_fitted(self) -> None:
7070
"""
7171
Raise a :class:`.NotFittedError` if this object is not fitted.
7272
73-
:meta public:
7473
:raise NotFittedError: this object is not fitted
7574
"""
7675
if not self.is_fitted:

0 commit comments

Comments
 (0)