aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2022-05-27 12:24:35 +0200
committerGuido Günther <agx@sigxcpu.org>2022-05-27 12:24:35 +0200
commit39ae57e57654950b56c1d960df20cbe4cd90c824 (patch)
treeea7453c577ef115a3f7c95821745854781f0271d
parent9ab4a0e71438dd39a2b6f1da04ab61810e05c521 (diff)
Ignore imports without type annotations for now
Ignore rpm and libnotify for the moment
-rw-r--r--gbp/notifications.py2
-rw-r--r--gbp/rpm/lib_rpm.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gbp/notifications.py b/gbp/notifications.py
index ae0d5de2..847aa433 100644
--- a/gbp/notifications.py
+++ b/gbp/notifications.py
@@ -27,7 +27,7 @@ def enable_notifications():
# Avoid GTK+ cannot open display warning:
warnings.simplefilter("ignore")
try:
- import notify2
+ import notify2 # type: ignore
notify_module = notify2
except (ImportError, RuntimeError):
return False
diff --git a/gbp/rpm/lib_rpm.py b/gbp/rpm/lib_rpm.py
index 4ef741d3..6cb71e28 100644
--- a/gbp/rpm/lib_rpm.py
+++ b/gbp/rpm/lib_rpm.py
@@ -28,7 +28,7 @@ except ImportError:
gbp.log.warn("Failed to import '%s' as rpm python module, using host's "
"default rpm library instead" %
RpmPkgPolicy.python_rpmlib_module_name)
- import rpm as librpm
+ import rpm as librpm # type: ignore
# Module initialization
_rpmlog = tempfile.NamedTemporaryFile(mode='w+', prefix='gbp_rpmlog')