From aa36289684f21c97ff7f26329c0a3a97cca8a190 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 14 May 2023 13:52:19 +0300 Subject: [PATCH] Bump `PyInstaller` to `5.11.*` (#10179) Co-authored-by: Alex Waygood --- stubs/pyinstaller/METADATA.toml | 2 +- stubs/pyinstaller/PyInstaller/building/datastruct.pyi | 3 +++ stubs/pyinstaller/PyInstaller/depend/imphookapi.pyi | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/stubs/pyinstaller/METADATA.toml b/stubs/pyinstaller/METADATA.toml index e94528184..a752aeb82 100644 --- a/stubs/pyinstaller/METADATA.toml +++ b/stubs/pyinstaller/METADATA.toml @@ -1,2 +1,2 @@ -version = "5.10.*" +version = "5.11.*" requires = ["types-setuptools"] diff --git a/stubs/pyinstaller/PyInstaller/building/datastruct.pyi b/stubs/pyinstaller/PyInstaller/building/datastruct.pyi index 472aa855c..090a115e0 100644 --- a/stubs/pyinstaller/PyInstaller/building/datastruct.pyi +++ b/stubs/pyinstaller/PyInstaller/building/datastruct.pyi @@ -41,3 +41,6 @@ class Tree(Target, TOC): typecode: _TypeCode = "DATA", ) -> None: ... def assemble(self) -> None: ... + +def normalize_toc(toc: Iterable[_TOCTuple]) -> list[_TOCTuple]: ... +def normalize_pyz_toc(toc: Iterable[_TOCTuple]) -> list[_TOCTuple]: ... diff --git a/stubs/pyinstaller/PyInstaller/depend/imphookapi.pyi b/stubs/pyinstaller/PyInstaller/depend/imphookapi.pyi index a5fddf4bd..19ba39abf 100644 --- a/stubs/pyinstaller/PyInstaller/depend/imphookapi.pyi +++ b/stubs/pyinstaller/PyInstaller/depend/imphookapi.pyi @@ -63,8 +63,8 @@ class PostGraphAPI: def imports(self) -> Generator[Package, None, None]: ... def add_imports(self, *module_names: str) -> None: ... def del_imports(self, *module_names: str) -> None: ... - def add_binaries(self, list_of_tuples: TOC | Iterable[tuple[StrOrBytesPath, StrOrBytesPath]]) -> None: ... - def add_datas(self, list_of_tuples: TOC | Iterable[tuple[StrOrBytesPath, StrOrBytesPath]]) -> None: ... + def add_binaries(self, binaries: TOC | Iterable[tuple[StrOrBytesPath, StrOrBytesPath]]) -> None: ... + def add_datas(self, datas: TOC | Iterable[tuple[StrOrBytesPath, StrOrBytesPath]]) -> None: ... def set_module_collection_mode( self, name: str | None, mode: Literal["pyz", "pyc", "py", "pyz+py", "py+pyz", None] ) -> None: ...