Skip to content

Commit 66790ec

Browse files
ref: fix scope_list typing in testutils factories (#91393)
<!-- Describe your PR here. -->
1 parent 1cd7f01 commit 66790ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/testutils/factories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ def create_team_membership(team, member=None, user=None, role=None):
464464

465465
@staticmethod
466466
@assume_test_silo_mode(SiloMode.CONTROL)
467-
def create_api_key(organization, scope_list=None, **kwargs):
468-
return ApiKey.objects.create(organization_id=organization.id, scope_list=scope_list)
467+
def create_api_key(organization, **kwargs) -> ApiKey:
468+
return ApiKey.objects.create(organization_id=organization.id, **kwargs)
469469

470470
@staticmethod
471471
@assume_test_silo_mode(SiloMode.CONTROL)

0 commit comments

Comments
 (0)