mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-13 21:51:47 +08:00
Fix some stubtest complaints before they happen (#9585)
Add missing objects to various stubs
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user