Skip to content

Commit 81f08f3

Browse files
author
Florian Gardin
committed
fix pep8
1 parent 26074ea commit 81f08f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

skrules/rule.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __iter__(self):
5252
yield self.args
5353

5454
def __repr__(self):
55-
return ' and '.join([' '.join([feature, symbol,
56-
str(self.agg_dict[(feature, symbol)])])
57-
for feature, symbol in sorted(self.agg_dict.keys())])
55+
return ' and '.join([' '.join(
56+
[feature, symbol, str(self.agg_dict[(feature, symbol)])])
57+
for feature, symbol in sorted(self.agg_dict.keys())
58+
])

skrules/skope_rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def fit(self, X, y, sample_weight=None):
373373

374374
self.rules_ = sorted(self.rules_.items(),
375375
key=lambda x: (x[1][0], x[1][1]), reverse=True)
376-
376+
377377
# Deduplicate the rule using semantic tree
378378
if self.max_depth_duplication is not None:
379379
self.rules_ = self.deduplicate(self.rules_)

0 commit comments

Comments
 (0)