From d34b9d1cf8d4834b597d36b97260943187747623 Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Tue, 13 Feb 2024 15:52:26 -0500 Subject: [PATCH] Fix definition order in typing and remove duplicate definition --- typings/CoreBluetooth/__init__.pyi | 10 ++++------ typings/Foundation/__init__.pyi | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) 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