From ed299aa2c5df4842fbb57b0231269443e4d8b3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Sun, 10 Sep 2023 18:05:57 +0200 Subject: [PATCH] Update old_base.py --- skpro/base/old_base.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/skpro/base/old_base.py b/skpro/base/old_base.py index 2eeeeec51..885e9720e 100644 --- a/skpro/base/old_base.py +++ b/skpro/base/old_base.py @@ -237,7 +237,9 @@ class Distribution(metaclass=ImplementsEnhancedInterface): Interface mode ('elementwise' or 'batch') """ - def __init__(self, estimator, X, selection=slice(None), mode="elementwise"): # noqa + def __init__( # noqa + self, estimator, X, selection=slice(None), mode="elementwise" # noqa + ): # noqa self.estimator = estimator self._X = X self.index = slice(None) @@ -520,9 +522,11 @@ def fit(self, X, y): ------- self : returns an instance of self. """ - warnings.warn("The estimator doesn't implement a fit procedure", UserWarning) # noqa + warnings.warn( # noqa + "The estimator doesn't implement a fit procedure", UserWarning # noqa + ) # noqa - return self + return self # noqa def score(self, X, y, sample=True, return_std=False): """Return the log-loss score.