11# https://pyinstaller.org/en/stable/hooks.html
22
3- from _typeshed import StrOrBytesPath , StrPath , SupportsKeysAndGetItem
4- from collections .abc import Callable , Iterable , Mapping
3+ from _typeshed import StrOrBytesPath , StrPath
4+ from collections .abc import Callable , Iterable
55from typing import Any
6- from typing_extensions import Literal , TypeAlias
6+ from typing_extensions import Literal
77
88import pkg_resources
99from PyInstaller import HOMEPATH as HOMEPATH
@@ -13,17 +13,12 @@ from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as g
1313
1414conda_support = conda
1515
16- _Environ : TypeAlias = SupportsKeysAndGetItem [str , str ] | Iterable [tuple [str , str ]] | Mapping [str , str ]
17-
1816PY_IGNORE_EXTENSIONS : set [str ]
1917hook_variables : dict [str , str ]
2018
2119def exec_statement (statement : str ) -> str | int : ...
2220def exec_statement_rc (statement : str ) -> str | int : ...
23- def exec_script (script_filename : StrOrBytesPath , * args : str , env : _Environ | None = ...) -> str | int : ...
24- def exec_script_rc (script_filename : StrOrBytesPath , * args : str , env : _Environ | None = ...) -> str | int : ...
2521def eval_statement (statement : str ) -> Any | Literal ["" ]: ...
26- def eval_script (script_filename : StrOrBytesPath , * args : str , env : _Environ | None = ...) -> Any | Literal ["" ]: ...
2722def get_pyextension_imports (module_name : str ) -> list [str ]: ...
2823def get_homebrew_path (formula : str = ...) -> str | None : ...
2924def remove_prefix (string : str , prefix : str ) -> str : ...
0 commit comments