Skip to content

Commit 9c31cad

Browse files
committed
Remove unused type
1 parent 283cabf commit 9c31cad

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/pip/_internal/operations/freeze.py

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
import collections
22
import logging
33
import os
4-
from typing import (
5-
Container,
6-
Dict,
7-
Iterable,
8-
Iterator,
9-
List,
10-
NamedTuple,
11-
Optional,
12-
Set,
13-
Union,
14-
)
4+
from typing import Container, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set
155

16-
from pip._vendor.packaging.requirements import Requirement
176
from pip._vendor.packaging.utils import canonicalize_name
187
from pip._vendor.packaging.version import Version
198

@@ -231,7 +220,7 @@ class FrozenRequirement:
231220
def __init__(
232221
self,
233222
name: str,
234-
req: Union[str, Requirement],
223+
req: str,
235224
editable: bool,
236225
comments: Iterable[str] = (),
237226
) -> None:

0 commit comments

Comments
 (0)