Skip to content

Commit

Permalink
Fix new MyPy 11 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
e10e3 committed Aug 29, 2024
1 parent b451bcf commit cec4034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion river/compat/sklearn_to_river.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def convert_sklearn_to_river(estimator: sklearn_base.BaseEstimator, classes: lis
(sklearn_base.RegressorMixin, SKL2RiverRegressor),
(
sklearn_base.ClassifierMixin,
functools.partial(SKL2RiverClassifier, classes=classes),
functools.partial(SKL2RiverClassifier, classes=classes), # type:ignore[arg-type]
),
]

Expand Down
2 changes: 1 addition & 1 deletion river/feature_extraction/vectorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(
# Stop word removal
if self.stop_words:
self.processing_steps.append(
functools.partial(remove_stop_words, stop_words=stop_words)
functools.partial(remove_stop_words, stop_words=self.stop_words)
)

# n-grams
Expand Down

0 comments on commit cec4034

Please sign in to comment.