]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Ignore 'arg-type' mypy error about list subclass in fix_db
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 5 Nov 2021 09:58:38 +0000 (10:58 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Nov 2021 01:57:39 +0000 (02:57 +0100)
Not sure why this is an error. Are we supposed to inherit from
List[Any]?

tests/fix_db.py

index 74e16b40919d128e1c960c43a5a2db3f9a1345a7..97287c42d61c619ea3fa9b8caff96ca0460195fa 100644 (file)
@@ -131,7 +131,7 @@ def patch_exec(conn, monkeypatch):
     return L
 
 
-class ListPopAll(list):
+class ListPopAll(list):  # type: ignore[type-arg]
     """A list, with a popall() method."""
 
     def popall(self):