[elbe-devel] [PATCH 26/37] Drop type hints
Benedikt Spranger
b.spranger at linutronix.de
Wed Feb 7 15:28:53 CET 2024
Python type hints are a contradiction in terms or more clear:
"If you want static type checking, use a mature programing language."
Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
elbepack/aptpkgutils.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index 0dee6520..c04d4ae2 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -96,7 +96,6 @@ def pkgorigin(pkg):
def _file_is_same(path, size, sha256):
- # type: (str, int, str) -> bool
"""Return ``True`` if the file is the same."""
if os.path.exists(path) and os.path.getsize(path) == size:
with open(path) as fobj:
@@ -105,7 +104,6 @@ def _file_is_same(path, size, sha256):
def fetch_binary(version, destdir='', progress=None):
- # type: (str, AcquireProgress) -> str
"""Fetch the binary version of the package.
The parameter *destdir* specifies the directory where the package will
--
2.43.0
More information about the elbe-devel
mailing list