Skip to content

Commit

Permalink
fix : changed warning category
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelParece committed May 6, 2024
1 parent cfcc5c5 commit 6e48d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/linear_model/_stochastic_gradient.py
Expand Up @@ -140,7 +140,7 @@ def __init__(

def __dir__(self):
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", category=FutureWarning)
return [attr for attr in super().__dir__() if hasattr(self, attr)]

@abstractmethod
Expand Down

0 comments on commit 6e48d35

Please sign in to comment.