ruff: Fix SIM118 Use key in dict instead of key in dict.keys().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-12-11 18:39:16 -08:00
committed by Tim Abbott
parent a6442288cf
commit e1ed44907b
22 changed files with 27 additions and 27 deletions

View File

@@ -77,7 +77,7 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:
seen_hotspots = frozenset(
UserHotspot.objects.filter(user=user).values_list("hotspot", flat=True)
)
for hotspot in INTRO_HOTSPOTS.keys():
for hotspot in INTRO_HOTSPOTS:
if hotspot not in seen_hotspots:
return [
{