mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 14:00:12 +08:00
PyInstaller: Complete types in build_main.pyi (#13528)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete, StrPath
|
||||
from _typeshed import StrPath
|
||||
from collections.abc import Iterable
|
||||
from typing import Any, Literal
|
||||
|
||||
@@ -23,21 +23,33 @@ class Analysis(Target):
|
||||
binaries: list[_TOCTuple]
|
||||
zipfiles: list[_TOCTuple]
|
||||
datas: list[_TOCTuple]
|
||||
|
||||
inputs: list[str]
|
||||
dependencies: list[_TOCTuple]
|
||||
noarchive: bool
|
||||
optimize: int
|
||||
pathex: list[StrPath]
|
||||
hiddenimports: list[str]
|
||||
hookspath: list[tuple[StrPath, int]]
|
||||
excludes: list[str]
|
||||
custom_runtime_hooks: list[StrPath]
|
||||
# https://pyinstaller.org/en/stable/hooks.html#hook-global-variables
|
||||
module_collection_mode: dict[str, str]
|
||||
def __init__(
|
||||
self,
|
||||
scripts: Iterable[StrPath],
|
||||
pathex: Incomplete | None = None,
|
||||
pathex: Iterable[StrPath] | None = None,
|
||||
binaries: Iterable[tuple[StrPath, StrPath]] | None = None,
|
||||
datas: Iterable[tuple[StrPath, StrPath]] | None = None,
|
||||
hiddenimports: Incomplete | None = None,
|
||||
hookspath: Incomplete | None = None,
|
||||
hiddenimports: Iterable[str] | None = None,
|
||||
hookspath: Iterable[StrPath] | None = None,
|
||||
hooksconfig: dict[str, dict[str, Any]] | None = None,
|
||||
excludes: Incomplete | None = None,
|
||||
runtime_hooks: Incomplete | None = None,
|
||||
excludes: Iterable[str] | None = None,
|
||||
runtime_hooks: Iterable[StrPath] | None = None,
|
||||
cipher: _PyiBlockCipher = None,
|
||||
win_no_prefer_redirects: bool = False,
|
||||
win_private_assemblies: bool = False,
|
||||
noarchive: bool = False,
|
||||
module_collection_mode: Incomplete | None = None,
|
||||
module_collection_mode: dict[str, str] | None = None,
|
||||
optimize: Literal[-1, 0, 1, 2] | None = -1,
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user