Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.0
3.4.1
12 changes: 11 additions & 1 deletion stubs/pythonista_stubs/cb.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ according to [pythonista.cb docs](https://omz-software.com/pythonista/docs/ios/c

from typing import Protocol

from _cb import ( # type: ignore[import-not-found]
from _cb import (
Comment thread
hbmartin marked this conversation as resolved.
CH_PROP_AUTHENTICATED_SIGNED_WRITES,
CH_PROP_BROADCAST,
CH_PROP_EXTENDED_PROPERTIES,
Expand Down Expand Up @@ -48,13 +48,15 @@ __all__ = (
"Characteristic",
"Peripheral",
"Service",
"SharedCentralManager",
"cancel_peripheral_connection",
"connect_peripheral",
"get_state",
"reset",
"scan_for_peripherals",
"set_central_delegate",
"set_verbose",
"shared_manager",
"stop_scan",
)

Expand All @@ -81,6 +83,14 @@ class _CentralManagerDelegate(Protocol):
def did_update_value(self, c: Characteristic, error: str | None) -> None: ...
def did_update_state(self) -> None: ...

# Documented at https://github.com/hbmartin/pythonista-stubs/pull/11#issuecomment-3180673698
class SharedCentralManager(CentralManager):
Comment thread
hbmartin marked this conversation as resolved.
delegate: _CentralManagerDelegate | None
verbose: bool = False
def verbose_log(self) -> None: ...

shared_manager: SharedCentralManager | None = None

def set_central_delegate(delegate: _CentralManagerDelegate) -> None: ...
def set_verbose(flag: bool) -> None: ...
def scan_for_peripherals() -> None: ...
Expand Down