mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-28 14:50:14 +03:00
fix(typing): resolve mypy errors in utils.asyncio.embed_shell
This commit is contained in:
parent
8df25dec32
commit
d1df96e0a6
@ -236,12 +236,11 @@ class ShellConnection(TelnetConnection):
|
||||
async def disconnected(self):
|
||||
pass
|
||||
|
||||
@asyncio.coroutine
|
||||
def window_size_changed(self, columns, rows):
|
||||
async def window_size_changed(self, columns, rows):
|
||||
self._size = Size(rows=rows, columns=columns)
|
||||
self._cb.terminal_size_changed()
|
||||
if self._window_size_changed_callback:
|
||||
yield from self._window_size_changed_callback(columns, rows)
|
||||
await self._window_size_changed_callback(columns, rows)
|
||||
|
||||
async def feed(self, data):
|
||||
data = data.decode()
|
||||
|
||||
@ -421,7 +421,6 @@ module = [
|
||||
"gns3server.services.computes", # 4
|
||||
"gns3server.services.templates", # 18
|
||||
"gns3server.utils.asyncio.aiozipstream", # 8
|
||||
"gns3server.utils.asyncio.embed_shell", # 1
|
||||
"gns3server.utils.encryption", # 2
|
||||
"gns3server.utils.http_client", # 4
|
||||
"gns3server.utils.images", # 4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user