diff --git a/stubs/pyinstaller/METADATA.toml b/stubs/pyinstaller/METADATA.toml index 19f97e644..2a713c735 100644 --- a/stubs/pyinstaller/METADATA.toml +++ b/stubs/pyinstaller/METADATA.toml @@ -1,4 +1,4 @@ -version = "5.7.*" +version = "5.8.*" requires = ["types-setuptools"] [tool.stubtest] diff --git a/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi b/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi index 9b80c6668..b2ee86387 100644 --- a/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +++ b/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi @@ -45,7 +45,7 @@ def is_module_or_submodule(name: str, mod_or_submod: str) -> bool: ... PY_DYLIB_PATTERNS: Final[list[str]] -def collect_dynamic_libs(package: str, destdir: object = None) -> list[tuple[str, str]]: ... +def collect_dynamic_libs(package: str, destdir: object = None, search_patterns: Iterable[str] = ...) -> list[tuple[str, str]]: ... def collect_data_files( package: str, include_py_files: bool = False, diff --git a/stubs/pyinstaller/PyInstaller/utils/hooks/win32.pyi b/stubs/pyinstaller/PyInstaller/utils/hooks/win32.pyi index 105eb1f5b..ac5efe75a 100644 --- a/stubs/pyinstaller/PyInstaller/utils/hooks/win32.pyi +++ b/stubs/pyinstaller/PyInstaller/utils/hooks/win32.pyi @@ -1,3 +1 @@ -__all__ = ("get_pywin32_module_file_attribute",) - -def get_pywin32_module_file_attribute(module_name: str) -> str | int: ... +def get_pywin32_module_file_attribute(module_name: str) -> str | None: ...