mirror of
https://github.com/google/bumble.git
synced 2026-05-10 04:18:03 +00:00
overall: add types hints to the small subset used by avatar
This commit is contained in:
@@ -28,7 +28,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
async def open_transport(name):
|
||||
async def open_transport(name: str) -> Transport:
|
||||
'''
|
||||
Open a transport by name.
|
||||
The name must be <type>:<parameters>
|
||||
|
||||
@@ -259,7 +259,7 @@ class Transport:
|
||||
def __iter__(self):
|
||||
return iter((self.source, self.sink))
|
||||
|
||||
async def close(self):
|
||||
async def close(self) -> None:
|
||||
self.source.close()
|
||||
self.sink.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user