diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 0b541e1..af8ded5 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -60,7 +60,7 @@ def fetch(name: str): def read_file(path: str) -> str: return open(path, "r", encoding="utf-8-sig").read() -def rewrite_file(path: str, content: str): +def rewrite_file(path: str, content: str) -> int: return open(path, "w", encoding="utf-8").write(content) def read_from_file_or_stdin(path: str) -> str: