File .deepsource.toml
not found in the default branch of the repository root. Please refer to the docs.
706 elif self.event_type == EVENT_TYPE.DELTA:
707 last_pre_query_grouped = (
708 pre_query_all_events.filter(*filter_args, **grouping_filter)
709 .values(*[x for x in grouping_filter.keys()]) 710 .annotate(last_qty=Sum(Cast(F("property_value"), FloatField())))
711 )
712 last_pre_query_actual_events = pre_query_all_events.annotate(
Consider iterating the dictionary directly instead of calling .keys()
.
Using for key in dictionary
would always iterate the dictionary keys.
sounds = {"cow": "moo", "dog": "bark"}
for key in sounds.keys():
print(key)
sounds = {"cow": "moo", "dog": "bark"}
for key in sounds:
print(key)