Skip to content

Commit

Permalink
Fix definition order in typing and remove duplicate definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 13, 2024
1 parent 17d4374 commit d34b9d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions typings/CoreBluetooth/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ class CBCentralManager(CBManager):
def registerForConnectionEventsWithOptions_(
self, options: NSDictionary
) -> None: ...
def registerForConnectionEventsWithOptions_(
self, options: NSDictionary
) -> None: ...

CBConnectPeripheralOptionNotifyOnConnectionKey: NSString
CBConnectPeripheralOptionNotifyOnDisconnectionKey: NSString
Expand Down Expand Up @@ -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: ...
Expand Down
2 changes: 1 addition & 1 deletion typings/Foundation/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d34b9d1

Please sign in to comment.