[ENH]: Add missing decorators for BaseMarker and BasePreprocessor #214
3 changed files with 3 additions and 0 deletions
1
docs/changes/newsfragments/214.enh
Normal file
1
docs/changes/newsfragments/214.enh
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Add missing ``abstractmethod`` decorators for ``get_valid_inputs`` methods of :class:`junifer.markers.BaseMarker` and :class:`junifer.preprocess.BasePreprocessor` by `Synchon Mandal`_
|
||||||
|
|
@ -45,6 +45,7 @@ class BaseMarker(ABC, PipelineStepMixin, UpdateMetaMixin):
|
||||||
raise ValueError(f"{self.name} cannot be computed on {wrong_on}")
|
raise ValueError(f"{self.name} cannot be computed on {wrong_on}")
|
||||||
self._on = on
|
self._on = on
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
def get_valid_inputs(self) -> List[str]:
|
def get_valid_inputs(self) -> List[str]:
|
||||||
"""Get valid data types for input.
|
"""Get valid data types for input.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ class BasePreprocessor(ABC, PipelineStepMixin, UpdateMetaMixin):
|
||||||
klass=NotImplementedError,
|
klass=NotImplementedError,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
def get_valid_inputs(self) -> List[str]:
|
def get_valid_inputs(self) -> List[str]:
|
||||||
"""Get valid data types for input.
|
"""Get valid data types for input.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue