Code cleanup
authorJakob Cornell <jakob+gpg@jcornell.net>
Thu, 25 Nov 2021 19:18:04 +0000 (13:18 -0600)
committerJakob Cornell <jakob+gpg@jcornell.net>
Thu, 25 Nov 2021 19:18:04 +0000 (13:18 -0600)
src/disk_jumble/db.py
src/disk_jumble/tests/test_verify.py

index ee93efce1548a103170a094b0fe031589c6f5c00..68488f095ebc519296ec76130a0d415889539287 100644 (file)
@@ -1,6 +1,6 @@
 from __future__ import annotations
 from dataclasses import dataclass
-from typing import Iterable, Mapping, Optional
+from typing import Any, Iterable, Optional
 import datetime as dt
 import itertools
 
index d3d413347ed558a963cea33b9317c06f6f02e433..f0b4b95d20cfeac4897d817d340f9171760840fb 100644 (file)
@@ -154,7 +154,7 @@ class Tests(unittest.TestCase):
                        if (
                                not l.startswith("SET")
                                and not l.startswith("SELECT")  # ignore server settings
-                               and not "OWNER TO" in l  # and ownership changes
+                               and "OWNER TO" not in l  # and ownership changes
                        )
                )
                cls._conn = psycopg2.connect("")