1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-06-30 14:40:09 +02:00

Add typing information for mypy

This commit is contained in:
Jochen Sprickerhof 2021-12-30 10:36:10 +01:00
parent 460dffe82b
commit be7e59e71a

View File

@ -59,6 +59,7 @@ import zipfile
import zlib
from collections import namedtuple
from typing import Dict, Tuple, Union
__version__ = "0.4.0"
NAME = "apksigcopier"
@ -95,7 +96,7 @@ class ZipError(APKSigCopierError):
class ReproducibleZipInfo(zipfile.ZipInfo):
"""Reproducible ZipInfo hack."""
_override = {}
_override = {} # type: Dict[str, Union[int, Tuple[int, ...]]]
def __init__(self, zinfo, **override):
if override: