mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
add the undocumented ctypes.macholib module (#13086)
This commit is contained in:
@@ -58,10 +58,6 @@ weakref.WeakValueDictionary.update
|
||||
# ==========
|
||||
# TODO: Modules that exist at runtime, but are missing from stubs
|
||||
# ==========
|
||||
ctypes.macholib
|
||||
ctypes.macholib.dyld
|
||||
ctypes.macholib.dylib
|
||||
ctypes.macholib.framework
|
||||
encodings.aliases
|
||||
encodings.ascii
|
||||
encodings.base64_codec
|
||||
|
||||
1
stdlib/ctypes/macholib/__init__.pyi
Normal file
1
stdlib/ctypes/macholib/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
__version__: str
|
||||
8
stdlib/ctypes/macholib/dyld.pyi
Normal file
8
stdlib/ctypes/macholib/dyld.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from collections.abc import Mapping
|
||||
from ctypes.macholib.dylib import dylib_info as dylib_info
|
||||
from ctypes.macholib.framework import framework_info as framework_info
|
||||
|
||||
__all__ = ["dyld_find", "framework_find", "framework_info", "dylib_info"]
|
||||
|
||||
def dyld_find(name: str, executable_path: str | None = None, env: Mapping[str, str] | None = None) -> str: ...
|
||||
def framework_find(fn: str, executable_path: str | None = None, env: Mapping[str, str] | None = None) -> str: ...
|
||||
14
stdlib/ctypes/macholib/dylib.pyi
Normal file
14
stdlib/ctypes/macholib/dylib.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
from typing import TypedDict, type_check_only
|
||||
|
||||
__all__ = ["dylib_info"]
|
||||
|
||||
# Actual result is produced by re.match.groupdict()
|
||||
@type_check_only
|
||||
class _DylibInfo(TypedDict):
|
||||
location: str
|
||||
name: str
|
||||
shortname: str
|
||||
version: str | None
|
||||
suffix: str | None
|
||||
|
||||
def dylib_info(filename: str) -> _DylibInfo | None: ...
|
||||
14
stdlib/ctypes/macholib/framework.pyi
Normal file
14
stdlib/ctypes/macholib/framework.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
from typing import TypedDict, type_check_only
|
||||
|
||||
__all__ = ["framework_info"]
|
||||
|
||||
# Actual result is produced by re.match.groupdict()
|
||||
@type_check_only
|
||||
class _FrameworkInfo(TypedDict):
|
||||
location: str
|
||||
name: str
|
||||
shortname: str
|
||||
version: str | None
|
||||
suffix: str | None
|
||||
|
||||
def framework_info(filename: str) -> _FrameworkInfo | None: ...
|
||||
Reference in New Issue
Block a user