Skip to content

Commit

Permalink
stubgen
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 1, 2024
1 parent bf4696d commit 83ad75c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def run(self) -> None:
shutil.move(src_file, dst_file)
if not os.path.exists(dst_file):
raise RuntimeError(f"Failed to generate {dst_file}")
if os.path.exists(src_file):
os.remove(src_file)

super().run()

Expand Down

0 comments on commit 83ad75c

Please sign in to comment.