diff --git a/typings/CoreBluetooth/__init__.pyi b/typings/CoreBluetooth/__init__.pyi index f5b84ff8..ca0a20e2 100644 --- a/typings/CoreBluetooth/__init__.pyi +++ b/typings/CoreBluetooth/__init__.pyi @@ -52,9 +52,6 @@ class CBCentralManager(CBManager): def registerForConnectionEventsWithOptions_( self, options: NSDictionary ) -> None: ... - def registerForConnectionEventsWithOptions_( - self, options: NSDictionary - ) -> None: ... CBConnectPeripheralOptionNotifyOnConnectionKey: NSString CBConnectPeripheralOptionNotifyOnDisconnectionKey: NSString @@ -202,15 +199,16 @@ class CBPeripheralDelegate: self, peripheral: CBPeripheral, invalidatedServices: NSArray ) -> None: ... +class CBAttribute(NSObject): + def UUID(self) -> CBUUID: ... + + class CBService(CBAttribute): def peripheral(self) -> CBPeripheral: ... def isPrimary(self) -> bool: ... def characteristics(self) -> Optional[NSArray]: ... def includedServices(self) -> Optional[NSArray]: ... -class CBAttribute(NSObject): - def UUID(self) -> CBUUID: ... - class CBUUID(NSObject): @classmethod def UUIDWithString_(cls, theString: NSString) -> CBUUID: ... diff --git a/typings/Foundation/__init__.pyi b/typings/Foundation/__init__.pyi index 0a4485b0..21e4be06 100644 --- a/typings/Foundation/__init__.pyi +++ b/typings/Foundation/__init__.pyi @@ -26,8 +26,8 @@ class NSData(NSObject): ... class NSArray(NSObject): def initWithArray_(self, array: Sequence) -> NSArray: ... -class NSNumber(NSValue): ... class NSValue(NSObject): ... +class NSNumber(NSValue): ... NSKeyValueObservingOptions = NewType("NSKeyValueObservingOptions", int) NSKeyValueObservingOptionNew: NSKeyValueObservingOptions