From a1b2bfb3558ebf34169f27f4cfe2916d942aab00 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 21 Oct 2021 14:11:09 +1000 Subject: [PATCH] remove duplicate line and unnecessary py.typed insertion in install_pyqt6 --- python/pyqt6/install_pyqt6.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/pyqt6/install_pyqt6.py b/python/pyqt6/install_pyqt6.py index de7a841e4..1ed1a6b15 100644 --- a/python/pyqt6/install_pyqt6.py +++ b/python/pyqt6/install_pyqt6.py @@ -50,7 +50,6 @@ def copy_and_fix_pyi(source, dest): # causes missing attributes not to be detected, as it's treating # the class as inheriting from Any line = line.replace("PyQt6.sip.wrapper", "object") - line = line.replace("PyQt6.sip.wrapper", "object") # # remove blanket getattr in QObject which also causes missing # # attributes not to be detected if "def __getattr__(self, name: str) -> typing.Any" in line: @@ -130,10 +129,6 @@ def main(): if arm_darwin: fix_webengine_codesigning(base) - # add missing py.typed file - with open(os.path.join(base, "py.typed"), "w") as file: - pass - result = """ load("@rules_python//python:defs.bzl", "py_library")