File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 13
13
USER_CACHE_DIR = appdirs .user_cache_dir ("pip" )
14
14
15
15
# FIXME doesn't account for venv linked to global site-packages
16
- site_packages : typing . Optional [ str ] = sysconfig .get_path ("purelib" )
16
+ site_packages : str = sysconfig .get_path ("purelib" )
17
17
18
18
19
19
def get_major_minor_version () -> str :
Original file line number Diff line number Diff line change 1
- # The following comment should be removed at some point in the future.
2
- # mypy: strict-optional=False
3
-
4
1
import os
5
2
import re
6
3
import sys
7
- from typing import Optional
4
+ from typing import List , Optional
8
5
9
6
from pip ._internal .locations import site_packages , user_site
10
7
from pip ._internal .utils .virtualenv import (
@@ -57,7 +54,7 @@ def egg_link_path_from_location(raw_name: str) -> Optional[str]:
57
54
58
55
This method will just return the first one found.
59
56
"""
60
- sites = []
57
+ sites : List [ str ] = []
61
58
if running_under_virtualenv ():
62
59
sites .append (site_packages )
63
60
if not virtualenv_no_global () and user_site :
You can’t perform that action at this time.
0 commit comments