Ignore imports without type annotations for now
authorGuido Günther <agx@sigxcpu.org>
Fri, 27 May 2022 10:24:35 +0000 (12:24 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 27 May 2022 10:24:35 +0000 (12:24 +0200)
Ignore rpm and libnotify for the moment

gbp/notifications.py
gbp/rpm/lib_rpm.py

index ae0d5de25357b36c5370ce4b7cffe10722ba522a..847aa433f158126d760055dedba0944912383c0e 100644 (file)
@@ -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
index 4ef741d39230c5523aaa09b7105c4a36ff2dcc22..6cb71e28ca8ca56b620764696e99453f556c0ea3 100644 (file)
@@ -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')