File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/pip/_internal/locations Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def _looks_like_bpo_44860() -> bool:
80
80
81
81
See <https://bugs.python.org/issue44860>.
82
82
"""
83
- from distutils .command .install import INSTALL_SCHEMES
83
+ from distutils .command .install import INSTALL_SCHEMES # type: ignore
84
84
85
85
try :
86
86
unix_user_platlib = INSTALL_SCHEMES ["unix_user" ]["platlib" ]
@@ -105,7 +105,7 @@ def _looks_like_red_hat_lib() -> bool:
105
105
106
106
This is the only way I can see to tell a Red Hat-patched Python.
107
107
"""
108
- from distutils .command .install import INSTALL_SCHEMES
108
+ from distutils .command .install import INSTALL_SCHEMES # type: ignore
109
109
110
110
return all (
111
111
k in INSTALL_SCHEMES
@@ -117,7 +117,7 @@ def _looks_like_red_hat_lib() -> bool:
117
117
@functools .cache
118
118
def _looks_like_debian_scheme () -> bool :
119
119
"""Debian adds two additional schemes."""
120
- from distutils .command .install import INSTALL_SCHEMES
120
+ from distutils .command .install import INSTALL_SCHEMES # type: ignore
121
121
122
122
return "deb_system" in INSTALL_SCHEMES and "unix_local" in INSTALL_SCHEMES
123
123
Original file line number Diff line number Diff line change 19
19
import logging
20
20
import os
21
21
import sys
22
- from distutils .command .install import SCHEME_KEYS
22
+ from distutils .command .install import SCHEME_KEYS # type: ignore
23
23
from typing import TYPE_CHECKING
24
24
25
25
from pip ._internal .models .scheme import Scheme
You can’t perform that action at this time.
0 commit comments