Commit d6de5a4b authored by juga's avatar juga
Browse files

fix: 2nd round of automatic format

black insists to keep one long line and flake complain, therefore make
flake to ignore it.
parent 8f711dd1
...@@ -400,8 +400,7 @@ class Result: ...@@ -400,8 +400,7 @@ class Result:
"scanner": self.scanner, "scanner": self.scanner,
"version": self.version, "version": self.version,
"relay_in_recent_consensus": self.relay_in_recent_consensus, "relay_in_recent_consensus": self.relay_in_recent_consensus,
"relay_recent_measurement_attempt": "relay_recent_measurement_attempt": self.relay_recent_measurement_attempt, # noqa
self.relay_recent_measurement_attempt,
"relay_recent_priority_list": self.relay_recent_priority_list, "relay_recent_priority_list": self.relay_recent_priority_list,
} }
...@@ -507,11 +506,7 @@ class ResultError(Result): ...@@ -507,11 +506,7 @@ class ResultError(Result):
def to_dict(self): def to_dict(self):
d = super().to_dict() d = super().to_dict()
d.update( d.update({"msg": self.msg})
{
"msg": self.msg,
}
)
return d return d
...@@ -831,8 +826,7 @@ class ResultSuccess(Result): ...@@ -831,8 +826,7 @@ class ResultSuccess(Result):
"relay_burst_bandwidth": self.relay_burst_bandwidth, "relay_burst_bandwidth": self.relay_burst_bandwidth,
"relay_observed_bandwidth": self.relay_observed_bandwidth, "relay_observed_bandwidth": self.relay_observed_bandwidth,
"consensus_bandwidth": self.consensus_bandwidth, "consensus_bandwidth": self.consensus_bandwidth,
"consensus_bandwidth_is_unmeasured": "consensus_bandwidth_is_unmeasured": self.consensus_bandwidth_is_unmeasured, # noqa
self.consensus_bandwidth_is_unmeasured,
} }
) )
return d return d
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment