Skip to content

Commit 695ee86

Browse files
Make reorder() return type explicit List (as flagged by sonatype-lift bot)
Signed-off-by: Rodney Richardson <[email protected]>
1 parent 368f522 commit 695ee86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import base64
2121
from datetime import datetime, timezone
2222
from decimal import Decimal
23-
from typing import List, Optional, Sequence, TypeVar
23+
from typing import List, Optional, TypeVar
2424

2525
from packageurl import PackageURL
2626

@@ -529,7 +529,7 @@ def get_vulnerability_source_owasp() -> VulnerabilitySource:
529529
T = TypeVar('T')
530530

531531

532-
def reorder(items: Sequence[T], indexes: Sequence[int]) -> Sequence[T]:
532+
def reorder(items: List[T], indexes: List[int]) -> List[T]:
533533
'''
534534
Return list of items in the order indicated by indexes.
535535
'''

0 commit comments

Comments
 (0)