fix(typing): resolve mypy errors in utils.asyncio.embed_shell

This commit is contained in:
Mark Paronyan 2026-09-28 04:43:20 +00:00
parent 8df25dec32
commit d1df96e0a6
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -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()

View File

@ -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