mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-18 05:30:04 -04:00
Add typing information for mypy
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user