Skip to content

Commit

Permalink
ref: fix return type for TeamKeyTransactionSerializer (#72888)
Browse files Browse the repository at this point in the history
<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jun 17, 2024
1 parent 0745f21 commit 951cb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry/discover/endpoints/serializers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from collections.abc import Sequence

from django.db.models import Count, Max
from django.db.models import Count, Max, QuerySet
from rest_framework import serializers
from rest_framework.serializers import ListField

Expand Down Expand Up @@ -273,7 +273,7 @@ class TeamKeyTransactionSerializer(serializers.Serializer):
transaction = serializers.CharField(required=True, max_length=200)
team = serializers.ListField(child=serializers.IntegerField())

def validate_team(self, team_ids: Sequence[int]) -> Team:
def validate_team(self, team_ids: Sequence[int]) -> QuerySet[Team]:
request = self.context["request"]
organization = self.context["organization"]
verified_teams = {team.id for team in Team.objects.get_for_user(organization, request.user)}
Expand Down

0 comments on commit 951cb34

Please sign in to comment.