diff --git a/swh/lister/dlang/__init__.py b/swh/lister/dlang/__init__.py
index c8f100f37634409ef8ff59975c345bbc88754f49..930f95f796e7f49c300ab0096cae99216173fa78 100644
--- a/swh/lister/dlang/__init__.py
+++ b/swh/lister/dlang/__init__.py
@@ -14,7 +14,7 @@ and C-like syntax.
 The `Dlang`_ lister list origins from its packages manager registry `DUB`_.
 
 The registry provides an `http api endpoint`_ that helps in getting the packages index
-with name,  url, versions and dates.
+with name, url, versions and dates.
 
 As of July 2023 `DUB`_ list 2364 package names.
 
diff --git a/swh/lister/rubygems/lister.py b/swh/lister/rubygems/lister.py
index 4e59b901cf8457600445407eaaa2e9cbc926dbca..7fbf7b3e859cf1b66f870039ba9fe810b6a512d9 100644
--- a/swh/lister/rubygems/lister.py
+++ b/swh/lister/rubygems/lister.py
@@ -93,14 +93,14 @@ class RubyGemsLister(StatelessLister[RubyGemsListerPage]):
         db_dsn = postgresql.dsn()
         db_url = postgresql.url().replace(db_dsn["database"], self.DB_NAME)
         db = psycopg2.connect(**db_dsn)
-        db.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
+        db.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)  # type: ignore
         with db.cursor() as cursor:
             cursor.execute(f"CREATE DATABASE {self.DB_NAME}")
 
         db_dsn["database"] = self.DB_NAME
 
         db = psycopg2.connect(**db_dsn)
-        db.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
+        db.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) # type: ignore
         with db.cursor() as cursor:
             cursor.execute("CREATE EXTENSION IF NOT EXISTS hstore")