Skip to content

Commit 10b35b6

Browse files
committed
replace OrderedDict with Dict
1 parent 7a823dc commit 10b35b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pip/_internal/commands/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import importlib
66
from collections import OrderedDict, namedtuple
7-
from typing import Any, Optional
7+
from typing import Any, Dict, Optional
88

99
from pip._internal.cli.base_command import Command
1010

@@ -18,7 +18,7 @@
1818
# in a test-related module).
1919
# Finally, we need to pass an iterable of pairs here rather than a dict
2020
# so that the ordering won't be lost when using Python 2.7.
21-
commands_dict: "OrderedDict[str, CommandInfo]" = OrderedDict([
21+
commands_dict: Dict[str, CommandInfo] = OrderedDict([
2222
('install', CommandInfo(
2323
'pip._internal.commands.install', 'InstallCommand',
2424
'Install packages.',

src/pip/_internal/commands/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def transform_hits(hits: List[Dict[str, str]]) -> List["TransformedHit"]:
8888
packages with the list of versions stored inline. This converts the
8989
list from pypi into one we can use.
9090
"""
91-
packages: "OrderedDict[str, TransformedHit]" = OrderedDict()
91+
packages: Dict[str, "TransformedHit"] = OrderedDict()
9292
for hit in hits:
9393
name = hit['name']
9494
summary = hit['summary']

0 commit comments

Comments
 (0)