From 39c5b4fc06d2e6b049e27e400e03b1e7ee4c785a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Mon, 7 Oct 2024 16:09:57 +0100 Subject: [PATCH] [DOC] merge docstring of `NotFittedError` with `sktime` (#371) Merges docstring of `NotFittedError` with `sktime` docstring, in preparation of refactor unification. --- skbase/_exceptions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skbase/_exceptions.py b/skbase/_exceptions.py index 79599ff6..7040c50d 100644 --- a/skbase/_exceptions.py +++ b/skbase/_exceptions.py @@ -21,11 +21,10 @@ def __init__(self, fixture_name="", err=None): class NotFittedError(ValueError, AttributeError): """Exception class to raise if estimator is used before fitting. - This class inherits from both ValueError and AttributeError to help with + This class inherits from both ``ValueError`` and ``AttributeError`` to help with exception handling. References ---------- - [1] scikit-learn's NotFittedError - [2] sktime's NotFittedError + .. [1] Based on scikit-learn's NotFittedError """