mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
remove duplicate line and unnecessary py.typed insertion in install_pyqt6
This commit is contained in:
parent
de301256e8
commit
a1b2bfb355
1 changed files with 0 additions and 5 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue