1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
from typing import Literal, Optional, TypeVar, overload
from CoreBluetooth import CBCentralManagerDelegate, CBPeripheralDelegate
from Foundation import NSObject
T = TypeVar("T")
class _OptionsType:
deprecation_warnings: bool
structs_indexable: bool
structs_writable: bool
unknown_pointer_raises: bool
use_kvo: bool
verbose: bool
options: _OptionsType
def super(cls: type, self: T) -> T: ...
def macos_available(major: int, minor: int, patch: int = 0) -> bool: ...
def python_method(func: T) -> T: ...
class WeakRef:
def __init__(self, object: NSObject) -> None: ...
def __call__(self) -> Optional[NSObject]: ...
@overload
def protocolNamed(
name: Literal["CBCentralManagerDelegate"],
) -> type[CBCentralManagerDelegate]: ...
@overload
def protocolNamed(
name: Literal["CBPeripheralDelegate"],
) -> type[CBPeripheralDelegate]: ...
|