home · contact · privacy
More str case removal. master
authorChristian Heller <c.heller@plomlompom.de>
Sat, 11 Jan 2025 07:02:29 +0000 (08:02 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 11 Jan 2025 07:02:29 +0000 (08:02 +0100)
tests/days.py
tests/utils.py

index 3ac657f6fefcefc5f85cbfdfe0adf9cf92449a7e..e5a241fd85ccc623c2e758cf2d5ee64a035d2ab8 100644 (file)
@@ -143,7 +143,7 @@ class ExpectedGetDay(Expected):
         for prefix in ['en', 'dis']:
             blers = {}
             for cond_id in conds_present:
-                blers[str(cond_id)] = self.as_ids(
+                blers[cond_id] = self.as_ids(
                         [t for t in todos if cond_id in t[f'{prefix}ables']])
             self._fields[f'{prefix}ablers_for'] = blers
         self._fields['processes'] = self.as_ids(self.lib_all('Process'))
index ce5f2e5233ad4e91d2ba64923127c87997ff677d..dd7dddc9bf195b84ffb39c1cbfe541ab6c88656b 100644 (file)
@@ -574,7 +574,7 @@ class Expected:
         self._forced[field_name] = value
 
     @staticmethod
-    def as_ids(items: list[dict[str, Any]]) -> list[int] | list[str]:
+    def as_ids(items: list[dict[str, Any]]) -> list[int]:
         """Return list of only 'id' fields of items."""
         return [item['id'] for item in items]