Ruff: b905 (strict zip) (#29336)

* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f1830618f5f61978491930cb0b8d36ab26
This commit is contained in:
Justin Newberry
2023-08-11 16:13:51 -07:00
committed by GitHub
parent afa33bee18
commit f33b4de80b
17 changed files with 31 additions and 30 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ if __name__ == "__main__":
logs = [args.route[0]]
else:
r = Route(args.route[0])
logs = [q_log if r_log is None else r_log for (q_log, r_log) in zip(r.qlog_paths(), r.log_paths())]
logs = [q_log if r_log is None else r_log for (q_log, r_log) in zip(r.qlog_paths(), r.log_paths(), strict=True)]
if len(args.route) == 2 and logs:
n = int(args.route[1])
+1 -1
View File
@@ -27,7 +27,7 @@ def make_pie(msgs, typ):
sizes_large = [(k, sz) for (k, sz) in sizes if sz >= total * MIN_SIZE / 100]
sizes_large += [('other', sum(sz for (_, sz) in sizes if sz < total * MIN_SIZE / 100))]
labels, sizes = zip(*sizes_large)
labels, sizes = zip(*sizes_large, strict=True)
plt.figure()
plt.title(f"{typ}")