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

This commit is contained in:
Mark Paronyan 2026-09-28 06:14:38 +00:00
parent e6053dd0a8
commit df8b3c2903
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 8 additions and 11 deletions

View File

@ -32,16 +32,14 @@ import asyncio
import aiofiles
from concurrent import futures
from zipfile import (
structCentralDir,
structEndArchive64,
structEndArchive,
structEndArchive64Locator,
stringCentralDir,
stringEndArchive64,
stringEndArchive,
stringEndArchive64Locator,
)
structCentralDir = "<4s4B4HL2L5H2L"
structEndArchive64 = "<4sQ2H2L4Q"
structEndArchive = b"<4s4H2LH"
structEndArchive64Locator = "<4sLQL"
stringCentralDir = b"PK\x01\x02"
stringEndArchive64 = b"PK\x06\x06"
stringEndArchive = b"PK\x05\x06"
stringEndArchive64Locator = b"PK\x06\x07"
ZIP_ZSTANDARD = 93 # zstandard is supported by WinZIP v24 and later, PowerArchiver 2021 and 7-Zip-zstd

View File

@ -392,7 +392,6 @@ module = [
"gns3server.schemas.controller.settings", # 3
"gns3server.schemas.controller.templates.docker_templates", # 1
"gns3server.services.templates", # 18
"gns3server.utils.asyncio.aiozipstream", # 8
"gns3server.utils.encryption", # 2
"gns3server.utils.http_client", # 4
"gns3server.utils.images", # 4