mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Add typing information for mypy
This commit is contained in:
parent
460dffe82b
commit
be7e59e71a
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ import zipfile
|
||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
from typing import Dict, Tuple, Union
|
||||||
|
|
||||||
__version__ = "0.4.0"
|
__version__ = "0.4.0"
|
||||||
NAME = "apksigcopier"
|
NAME = "apksigcopier"
|
||||||
|
@ -95,7 +96,7 @@ class ZipError(APKSigCopierError):
|
||||||
class ReproducibleZipInfo(zipfile.ZipInfo):
|
class ReproducibleZipInfo(zipfile.ZipInfo):
|
||||||
"""Reproducible ZipInfo hack."""
|
"""Reproducible ZipInfo hack."""
|
||||||
|
|
||||||
_override = {}
|
_override = {} # type: Dict[str, Union[int, Tuple[int, ...]]]
|
||||||
|
|
||||||
def __init__(self, zinfo, **override):
|
def __init__(self, zinfo, **override):
|
||||||
if override:
|
if override:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue