mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-30 07:40:12 +03:00
fix(typing): resolve mypy errors in utils.asyncio.aiozipstream
This commit is contained in:
parent
e6053dd0a8
commit
df8b3c2903
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user