home · contact · privacy
Extend and refactor tests.
[plomtask] / plomtask / versioned_attributes.py
index cfcbf87f2c79de1c21f85169b0e29db8d30e6b70..f5e17f3a848dd08f9066155af036a90c2c1b0941 100644 (file)
@@ -19,6 +19,10 @@ class VersionedAttribute:
         self.table_name = table_name
         self._default = default
         self.history: dict[str, str | float] = {}
+        # NB: For tighter mypy testing, we might prefer self.history to be
+        # dict[str, float] | dict[str, str] instead, but my current coding
+        # knowledge only manages to make that work by adding much further
+        # complexity, so let's leave it at that for now …
 
     def __hash__(self) -> int:
         history_tuples = tuple((k, v) for k, v in self.history.items())