@@ -59,7 +59,7 @@ def __init__(self, bleio_connection: _bleio.Connection) -> None:
59
59
# Service objects that wrap remote services.
60
60
self ._constructed_services = {}
61
61
62
- def _discover_remote (self , uuid : UUID ) -> Optional [Service ]:
62
+ def _discover_remote (self , uuid : UUID ) -> Optional [_bleio . Service ]:
63
63
remote_service = None
64
64
if uuid in self ._discovered_bleio_services :
65
65
remote_service = self ._discovered_bleio_services [uuid ]
@@ -72,7 +72,7 @@ def _discover_remote(self, uuid: UUID) -> Optional[Service]:
72
72
self ._discovered_bleio_services [uuid ] = remote_service
73
73
return remote_service
74
74
75
- def __contains__ (self , key : Union [UUID , Characteristic ]) -> bool :
75
+ def __contains__ (self , key : Union [UUID , Service ]) -> bool :
76
76
"""
77
77
Allows easy testing for a particular Service class or a particular UUID
78
78
associated with this connection.
@@ -90,7 +90,7 @@ def __contains__(self, key: Union[UUID, Characteristic]) -> bool:
90
90
uuid = key .uuid
91
91
return self ._discover_remote (uuid ) is not None
92
92
93
- def __getitem__ (self , key : Union [UUID , Characteristic ]) -> Optional [Service ]:
93
+ def __getitem__ (self , key : Union [UUID , Service ]) -> Optional [Service ]:
94
94
"""Return the Service for the given Service class or uuid, if any."""
95
95
uuid = key
96
96
maybe_service = False
0 commit comments