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"))
ctx.log.alert("Saved single cut.")
else:
with open(path, "a" if append else "w", newline='', encoding="utf8") as fp:
writer = csv.writer(fp)
with open(path, "a" if append else "w", newline='', encoding="utf8") as tfp:
writer = csv.writer(tfp)
for f in flows:
vals = [extract(c, f) for c in cuts]
writer.writerow(