From bb47da9514038805e2f607a26da51d07b60a3807 Mon Sep 17 00:00:00 2001 From: Nicholas Junge Date: Sun, 2 Feb 2025 19:47:49 +0100 Subject: [PATCH] stubgen: Remove path fixup workaround (#57) This was fixed in v2.5.0, so we can remove the path fixup section. --- stubgen_wrapper.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/stubgen_wrapper.py b/stubgen_wrapper.py index 4fedce8..167555c 100644 --- a/stubgen_wrapper.py +++ b/stubgen_wrapper.py @@ -122,13 +122,6 @@ def wrapper(): main(args) - if "-O" in args: - from_path = os.path.join( - *modname.split(".")[1:-1], ".".join(modname.split(".")[:-1]) + ".pyi" - ) - to_path = os.path.join(*modname.split(".")[1:]) + ".pyi" - shutil.move(bindir / from_path, bindir / to_path) - if __name__ == "__main__": wrapper()