Skip to content

Commit af2f933

Browse files
committed
[#35] Make flake8 happier
1 parent 1e92ead commit af2f933

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mappymatch/maps/nx/nx_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, graph: nx.MultiDiGraph):
5656
def _strip_verbose_data(self):
5757
too_verbose = ("_nodes", "_roads")
5858
base_dict = {
59-
k: v for k, v in self.__dict__.items() if not k in too_verbose
59+
k: v for k, v in self.__dict__.items() if k not in too_verbose
6060
}
6161
for label in too_verbose:
6262
member_len = len(eval(f"self.{label}"))

mappymatch/matchers/lcss/lcss.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ def __init__(
5555
self.distance_threshold = distance_threshold
5656

5757
def _string_rep(self):
58-
return (
59-
"LCSSMatcher("
60-
+ ", ".join(f"{k}: {v}" for k, v in self.__dict__.items())
61-
+ ")"
58+
base_dict_str = ", ".join(
59+
f"{k}: {v}" for k, v in self.__dict__.items()
6260
)
61+
return "LCSSMatcher(" + base_dict_str + ")"
6362

6463
def __repr__(self):
6564
return self._string_rep()

0 commit comments

Comments
 (0)