E573 STY Minor style changes to prepare for black (#20265) · scikit-learn/scikit-learn@8e26b0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e26b0c

Browse files
authored
STY Minor style changes to prepare for black (#20265)
1 parent 5f32f8b commit 8e26b0c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sklearn/linear_model/_stochastic_gradient.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,8 @@ def predict(self, X):
20402040
def _more_tags(self):
20412041
return {
20422042
'_xfail_checks': {
2043-
'check_sample_weights_invariance':
2044-
'zero sample_weight is not equivalent to removing samples',
2043+
'check_sample_weights_invariance': (
2044+
'zero sample_weight is not equivalent to removing samples'
2045+
)
20452046
}
20462047
}

sklearn/preprocessing/_polynomial.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,10 @@ def transform(self, X):
338338
return XP
339339

340340
# TODO: Remove in 1.2
341-
@deprecated("The attribute n_input_features_ was " # type: ignore
342-
"deprecated in version 1.0 and will be removed in 1.2.")
341+
# mypy error: Decorated property not supported
342+
@deprecated( # type: ignore
343+
"The attribute n_input_features_ was "
344+
"deprecated in version 1.0 and will be removed in 1.2.")
343345
@property
344346
def n_input_features_(self):
345347
return self.n_features_in_

0 commit comments

Comments
 (0)
0