From 39ae57e57654950b56c1d960df20cbe4cd90c824 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 27 May 2022 12:24:35 +0200 Subject: Ignore imports without type annotations for now Ignore rpm and libnotify for the moment --- gbp/notifications.py | 2 +- gbp/rpm/lib_rpm.py | 2 +- 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') -- cgit v1.2.3