Skip to content

Commit

Permalink
ref: use list[Project] for all branches in search.events.builder.base
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Jul 26, 2024
1 parent 84e405e commit effee3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry/search/events/builder/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ def _dataclass_params(
return snuba_params

if "project_objects" in params:
projects = cast(Sequence[Project], params["project_objects"])
projects = params["project_objects"]
elif "project_id" in params and (
isinstance(params["project_id"], list) or isinstance(params["project_id"], tuple) # type: ignore[unreachable]
):
projects = Project.objects.filter(id__in=params["project_id"])
projects = list(Project.objects.filter(id__in=params["project_id"]))
else:
projects = []

Expand Down

0 comments on commit effee3e

Please sign in to comment.