Skip to content

Commit

Permalink
Use builtin list instead of typing.List
Browse files Browse the repository at this point in the history
  • Loading branch information
yschneider-sinneria committed Feb 2, 2024
1 parent 1c59886 commit a0a6ea2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions treeherder/webapp/api/performance_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import datetime
import time
from collections import defaultdict
from typing import List
from urllib.parse import urlencode

import django_filters
Expand Down Expand Up @@ -819,7 +818,7 @@ def list(self, request):
return Response(data=serialized_data)

@staticmethod
def _filter_out_retriggers(serialized_data: List[dict]) -> List[dict]:
def _filter_out_retriggers(serialized_data: list[dict]) -> list[dict]:
"""
Removes data points resulted from retriggers
"""
Expand Down Expand Up @@ -1179,7 +1178,7 @@ def _get_filtered_signatures_by_interval(signatures, interval):
)

@staticmethod
def _get_signatures_values(signatures: List[PerformanceSignature]):
def _get_signatures_values(signatures: list[PerformanceSignature]):
return signatures.values(
"framework_id",
"id",
Expand Down

0 comments on commit a0a6ea2

Please sign in to comment.