From ee33644b89bec543c346a4bd4d9759c4e422e986 Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Sun, 4 Aug 2024 15:42:57 +0200 Subject: [PATCH] remove --- prepare_stub_template.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 prepare_stub_template.py diff --git a/prepare_stub_template.py b/prepare_stub_template.py deleted file mode 100755 index f2e970e..0000000 --- a/prepare_stub_template.py +++ /dev/null @@ -1,17 +0,0 @@ -import black -from pybind11_stubgen import ModuleStubsGenerator - -module = ModuleStubsGenerator("viewshed") -module.parse() -module.write_setup_py = True - -path = "viewshed/viewshed.pyi" - -with open(path, "w") as fp: - fp.write("#\n# AUTOMATICALLY GENERATED FILE, DO NOT EDIT!\n#\n\n") - lines = "\n".join(module.to_lines()) - formatted = black.format_str(lines, mode=black.FileMode()) - fp.write(formatted) - - -print("Done!")