mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
This will let us break up this method a bit more, rather than make the dictionary comprehension even more involved and nested. Means we need to `list()` it, because generator expressions cast to boolean are `True`, even if they’re empty – Python doesn’t evaluate them. ie: ```python bool(list()) >>> False ``` ```python bool((item for item in list())) >>> True ``` ```python bool(list(item for item in list())) >>> False ```