Skip to content

Commit 0ffff03

Browse files
authored
Merge pull request #9595 from hexagonrecursion/transformed-hint
Use the new typehint syntax
2 parents 743d8fd + 94441ff commit 0ffff03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pip/_internal/commands/search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
if TYPE_CHECKING:
2323
from typing import TypedDict
2424

25-
TransformedHit = TypedDict(
26-
'TransformedHit',
27-
{'name': str, 'summary': str, 'versions': List[str]},
28-
)
25+
class TransformedHit(TypedDict):
26+
name: str
27+
summary: str
28+
versions: List[str]
2929

3030
logger = logging.getLogger(__name__)
3131

0 commit comments

Comments
 (0)