Skip to content

Commit

Permalink
Make reorder() return type explicit List (as flagged by sonatype-lift…
Browse files Browse the repository at this point in the history
… bot)

Signed-off-by: Rodney Richardson <[email protected]>
  • Loading branch information
RodneyRichardson committed May 27, 2022
1 parent 368f522 commit 695ee86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import base64
from datetime import datetime, timezone
from decimal import Decimal
from typing import List, Optional, Sequence, TypeVar
from typing import List, Optional, TypeVar

from packageurl import PackageURL

Expand Down Expand Up @@ -529,7 +529,7 @@ def get_vulnerability_source_owasp() -> VulnerabilitySource:
T = TypeVar('T')


def reorder(items: Sequence[T], indexes: Sequence[int]) -> Sequence[T]:
def reorder(items: List[T], indexes: List[int]) -> List[T]:
'''
Return list of items in the order indicated by indexes.
'''
Expand Down

0 comments on commit 695ee86

Please sign in to comment.