Fix some stubtest complaints before they happen (#9585)

Add missing objects to various stubs
This commit is contained in:
Alex Waygood
2023-01-24 21:45:31 +00:00
committed by GitHub
parent 4148a7b73e
commit a9b4fa0a32
8 changed files with 21 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
# https://pyinstaller.org/en/stable/usage.html#running-pyinstaller-from-python-code
import logging
from _typeshed import SupportsKeysAndGetItem
from collections.abc import Iterable
from typing_extensions import TypeAlias
@@ -8,4 +9,6 @@ _PyIConfig: TypeAlias = (
SupportsKeysAndGetItem[str, bool | str | list[str] | None] | Iterable[tuple[str, bool | str | list[str] | None]]
)
logger: logging.Logger
def run(pyi_args: Iterable[str] | None = ..., pyi_config: _PyIConfig | None = ...) -> None: ...

View File

@@ -1,5 +1,6 @@
# https://pyinstaller.org/en/stable/hooks.html
import logging
from _typeshed import StrOrBytesPath, StrPath
from collections.abc import Callable, Iterable
from typing import Any
@@ -13,6 +14,7 @@ from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as g
conda_support = conda
logger: logging.Logger
PY_IGNORE_EXTENSIONS: set[str]
hook_variables: dict[str, str]