File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 5
5
try :
6
6
import pkg_resources
7
7
except ImportError :
8
- pkg_resources = None
8
+ pkg_resources = None # type: ignore[assignment]
9
9
10
10
11
11
def is_namespace (modname ):
Original file line number Diff line number Diff line change 88
88
try :
89
89
# real_prefix is defined when running inside virtual environments,
90
90
# created with the **virtualenv** library.
91
- STD_LIB_DIRS .add (os .path .join (sys .real_prefix , "dlls" ))
91
+ # Deprecated in virtualenv==16.7.9
92
+ # See: https://github.com/pypa/virtualenv/issues/1622
93
+ STD_LIB_DIRS .add (os .path .join (sys .real_prefix , "dlls" )) # type: ignore[attr-defined]
92
94
except AttributeError :
93
95
# sys.base_exec_prefix is always defined, but in a virtual environment
94
96
# created with the stdlib **venv** module, it points to the original
120
122
pass
121
123
del _root
122
124
if os .name == "posix" :
123
- # Need the real prefix is we're under a virtualenv, otherwise
125
+ # Need the real prefix if we're in a virtualenv, otherwise
124
126
# the usual one will do.
127
+ # Deprecated in virtualenv==16.7.9
128
+ # See: https://github.com/pypa/virtualenv/issues/1622
125
129
try :
126
- prefix = sys .real_prefix
130
+ prefix = sys .real_prefix # type: ignore[attr-defined]
127
131
except AttributeError :
128
132
prefix = sys .prefix
129
133
You can’t perform that action at this time.
0 commit comments