From 1cb856c891fe1013b3c471df34bb9f400718edab Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 11 Jan 2025 08:02:29 +0100 Subject: [PATCH] More str case removal. --- tests/days.py | 2 +- tests/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/days.py b/tests/days.py index 3ac657f..e5a241f 100644 --- a/tests/days.py +++ b/tests/days.py @@ -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')) diff --git a/tests/utils.py b/tests/utils.py index ce5f2e5..dd7dddc 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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] -- 2.30.2