Skip to content
Snippets Groups Projects
Commit 2a0e95df authored by Felix Fischer's avatar Felix Fischer :shrimp:
Browse files

fixed typing issues

parent 23d7ee2a
No related branches found
No related tags found
1 merge request!55Preview
Pipeline #1377683 passed
......@@ -3,7 +3,7 @@
Typing stubs for skimage.filters.
"""
from typing import Optional, Union, Any
from scientific_plots.types_ import Matrix
from scientific_plots.types_ import Matrix, Vector
def butterworth(
......
......@@ -4,10 +4,9 @@ Typing stubs for sklearn.ensemble.
"""
from __future__ import annotations
from typing import Optional, Union, List, Tuple, Dict, TypeVar
from typing import Optional, Union, List, Dict, TypeVar
from scientific_plots.types_ import Matrix, Vector as Vector_
from vector_type import Vector # Assuming Vector is defined in vector_type module
Vector = TypeVar("Vector", bound=Union[Vector_, Matrix])
......@@ -21,7 +20,7 @@ class IsolationForest:
bootstrap: bool = False,
n_jobs: Optional[int] = None,
behaviour: str = 'deprecated',
random_state: Optional[Union[int, np.random.RandomState]] = None,
random_state: Optional[int] = None,
verbose: int = 0,
warm_start: bool = False) -> None: ...
......@@ -45,18 +44,18 @@ class IsolationForest:
deep: bool = True) -> Dict[str,
Union[int, float, str, bool, None]]: ...
def set_params(self, **params) -> IsolationForest: ...
def set_params(self, params: dict[str, float]) -> IsolationForest: ...
# Additional methods for compatibility with BaseEstimator and OutlierMixin
def __getstate__(self) -> dict: ...
def __setstate__(self, state: dict) -> None: ...
def __getstate__(self) -> dict[str, float]: ...
def __setstate__(self, state: dict[str, float]) -> None: ...
# Properties
@property
def estimators_(self) -> List: ...
def estimators_(self) -> List[float]: ...
@property
def estimators_samples_(self) -> List: ...
def estimators_samples_(self) -> List[float]: ...
@property
def max_samples_(self) -> int: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment