File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def __init__(self, graph: nx.MultiDiGraph):
56
56
def _strip_verbose_data (self ):
57
57
too_verbose = ("_nodes" , "_roads" )
58
58
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
60
60
}
61
61
for label in too_verbose :
62
62
member_len = len (eval (f"self.{ label } " ))
Original file line number Diff line number Diff line change @@ -55,11 +55,10 @@ def __init__(
55
55
self .distance_threshold = distance_threshold
56
56
57
57
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 ()
62
60
)
61
+ return "LCSSMatcher(" + base_dict_str + ")"
63
62
64
63
def __repr__ (self ):
65
64
return self ._string_rep ()
You can’t perform that action at this time.
0 commit comments