Skip to content

Commit

Permalink
update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
auguste-probabl committed Feb 24, 2025
1 parent ad583b6 commit b74e296
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
from typing import Any

import numpy as np
import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.utils.metaestimators import available_if

from skore.externals._pandas_accessors import DirNamesMixin
from skore.sklearn._base import _BaseAccessor
from skore.sklearn._estimator.report import EstimatorReport
from skore.utils._accessor import _check_is_regressor_coef_task


class _FeatureImportanceAccessor(_BaseAccessor, DirNamesMixin):
class _FeatureImportanceAccessor(_BaseAccessor["EstimatorReport"], DirNamesMixin):
"""Accessor for feature importance related operations.
You can access this accessor using the `feature_importance` attribute.
"""

def __init__(self, parent: Any) -> None:
def __init__(self, parent: EstimatorReport) -> None:
super().__init__(parent)

@available_if(_check_is_regressor_coef_task)
Expand Down

0 comments on commit b74e296

Please sign in to comment.