Skip to content

Commit 2ca92a4

Browse files
Sabfosobolevn
andauthored
PyInstaller: Complete types in build_main.pyi (#13528)
Co-authored-by: sobolevn <[email protected]>
1 parent c4d7283 commit 2ca92a4

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

stubs/pyinstaller/PyInstaller/building/build_main.pyi

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from _typeshed import Incomplete, StrPath
1+
from _typeshed import StrPath
22
from collections.abc import Iterable
33
from typing import Any, Literal
44

@@ -23,21 +23,33 @@ class Analysis(Target):
2323
binaries: list[_TOCTuple]
2424
zipfiles: list[_TOCTuple]
2525
datas: list[_TOCTuple]
26+
27+
inputs: list[str]
28+
dependencies: list[_TOCTuple]
29+
noarchive: bool
30+
optimize: int
31+
pathex: list[StrPath]
32+
hiddenimports: list[str]
33+
hookspath: list[tuple[StrPath, int]]
34+
excludes: list[str]
35+
custom_runtime_hooks: list[StrPath]
36+
# https://pyinstaller.org/en/stable/hooks.html#hook-global-variables
37+
module_collection_mode: dict[str, str]
2638
def __init__(
2739
self,
2840
scripts: Iterable[StrPath],
29-
pathex: Incomplete | None = None,
41+
pathex: Iterable[StrPath] | None = None,
3042
binaries: Iterable[tuple[StrPath, StrPath]] | None = None,
3143
datas: Iterable[tuple[StrPath, StrPath]] | None = None,
32-
hiddenimports: Incomplete | None = None,
33-
hookspath: Incomplete | None = None,
44+
hiddenimports: Iterable[str] | None = None,
45+
hookspath: Iterable[StrPath] | None = None,
3446
hooksconfig: dict[str, dict[str, Any]] | None = None,
35-
excludes: Incomplete | None = None,
36-
runtime_hooks: Incomplete | None = None,
47+
excludes: Iterable[str] | None = None,
48+
runtime_hooks: Iterable[StrPath] | None = None,
3749
cipher: _PyiBlockCipher = None,
3850
win_no_prefer_redirects: bool = False,
3951
win_private_assemblies: bool = False,
4052
noarchive: bool = False,
41-
module_collection_mode: Incomplete | None = None,
53+
module_collection_mode: dict[str, str] | None = None,
4254
optimize: Literal[-1, 0, 1, 2] | None = -1,
4355
) -> None: ...

0 commit comments

Comments
 (0)