Merge pull request #2883 from markparonyan/mypy-utils-embed-shell

fix(typing): resolve mypy errors in utils.asyncio.embed_shell
This commit is contained in:
Jeremy Grossmann 2026-09-28 10:47:23 +02:00 committed by GitHub
commit 0718e038f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -420,7 +420,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