Skip to content

Commit 824f0fc

Browse files
committed
Make mypy happy
1 parent 4c6baf0 commit 824f0fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/assemble_distro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ def main() -> None:
134134
binary_file = gzip.GzipFile(package_infos_file, "w", 9, mtime=0)
135135
# the next line is needed to make mypy happy, see <https://stackoverflow.com/a/58407810/928031>
136136
binary_file_for_mypy = typing.cast(typing.IO[bytes], binary_file)
137-
f = io.TextIOWrapper(binary_file_for_mypy, "utf-8", None, None)
138-
json.dump(package_info, f, indent=4)
139-
f.close()
137+
f_pkg_info = io.TextIOWrapper(binary_file_for_mypy, "utf-8", None, None)
138+
json.dump(package_info, f_pkg_info, indent=4)
139+
f_pkg_info.close()
140140
binary_file.close()
141141
write_sha256(package_infos_file)
142142

0 commit comments

Comments
 (0)