We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38147b7 commit 24efee4Copy full SHA for 24efee4
src/nifreeze/estimator.py
@@ -99,7 +99,7 @@ def run(self, dataset: DatasetT, **kwargs) -> Self:
99
if self._prev is not None:
100
result = self._prev.run(dataset, **kwargs)
101
if isinstance(self._prev, Filter):
102
- dataset = result
+ dataset = result # type: ignore[assignment]
103
104
n_jobs = kwargs.get("n_jobs", None)
105
src/nifreeze/model/base.py
@@ -84,7 +84,7 @@ class BaseModel:
84
85
"""
86
87
- __slots__ = ("_dataset", )
+ __slots__ = ("_dataset",)
88
89
def __init__(self, dataset, **kwargs):
90
"""Base initialization."""
@@ -103,7 +103,7 @@ def fit_predict(self, index, **kwargs) -> np.ndarray:
class TrivialModel(BaseModel):
"""A trivial model that returns a given map always."""
106
- __slots__ = ("_predicted", )
+ __slots__ = ("_predicted",)
107
108
def __init__(self, dataset, predicted=None, **kwargs):
109
"""Implement object initialization."""
@@ -129,7 +129,7 @@ def fit_predict(self, *_, **kwargs):
129
class ExpectationModel(BaseModel):
130
"""A trivial model that returns an expectation map (for example, average)."""
131
132
- __slots__ = ("_stat", )
+ __slots__ = ("_stat",)
133
134
def __init__(self, dataset, stat="median", **kwargs):
135
"""Initialize a new model."""
0 commit comments