Skip to content

Commit

Permalink
Merge pull request #9595 from hexagonrecursion/transformed-hint
Browse files Browse the repository at this point in the history
Use the new typehint syntax
  • Loading branch information
pradyunsg authored Feb 24, 2021
2 parents 743d8fd + 94441ff commit 0ffff03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pip/_internal/commands/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
if TYPE_CHECKING:
from typing import TypedDict

TransformedHit = TypedDict(
'TransformedHit',
{'name': str, 'summary': str, 'versions': List[str]},
)
class TransformedHit(TypedDict):
name: str
summary: str
versions: List[str]

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 0ffff03

Please sign in to comment.