make mypy happy

This commit is contained in:
Maximilian Hils 2020-12-28 22:54:38 +01:00
parent e5912ca13d
commit e423bfbbcc
2 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ class Cut:
fp.write(v.encode("utf8")) fp.write(v.encode("utf8"))
ctx.log.alert("Saved single cut.") ctx.log.alert("Saved single cut.")
else: else:
with open(path, "a" if append else "w", newline='', encoding="utf8") as fp: with open(path, "a" if append else "w", newline='', encoding="utf8") as tfp:
writer = csv.writer(fp) writer = csv.writer(tfp)
for f in flows: for f in flows:
vals = [extract(c, f) for c in cuts] vals = [extract(c, f) for c in cuts]
writer.writerow( writer.writerow(