Skip to content

Commit e6b9ddc

Browse files
committed
NoneMetadataError doesn't need pkg_resources now
1 parent 498f313 commit e6b9ddc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pip/_internal/exceptions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import configparser
44
import re
55
from itertools import chain, groupby, repeat
6-
from typing import TYPE_CHECKING, Dict, Iterator, List, Optional, Union
6+
from typing import TYPE_CHECKING, Dict, Iterator, List, Optional
77

8-
from pip._vendor.pkg_resources import Distribution
98
from pip._vendor.requests.models import Request, Response
109

1110
if TYPE_CHECKING:
@@ -159,7 +158,7 @@ class NoneMetadataError(PipError):
159158

160159
def __init__(
161160
self,
162-
dist: Union[Distribution, "BaseDistribution"],
161+
dist: "BaseDistribution",
163162
metadata_name: str,
164163
) -> None:
165164
"""

0 commit comments

Comments
 (0)