We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0285e1a + 6fdeb52 commit 4b265b3Copy full SHA for 4b265b3
pyproject.toml
@@ -168,6 +168,7 @@ ignore = [
168
"B020",
169
"B904", # Ruff enables opinionated warnings by default
170
"B905", # Ruff enables opinionated warnings by default
171
+ "C420", # unnecessary-dict-comprehension-for-iterable (worsens readability)
172
]
173
select = [
174
"ASYNC",
src/pip/_internal/locations/_sysconfig.py
@@ -161,9 +161,9 @@ def get_scheme(
161
scheme_name = "posix_prefix"
162
163
if home is not None:
164
- variables = dict.fromkeys(_HOME_KEYS, home)
+ variables = {k: home for k in _HOME_KEYS}
165
elif prefix is not None:
166
- variables = dict.fromkeys(_HOME_KEYS, prefix)
+ variables = {k: prefix for k in _HOME_KEYS}
167
else:
variables = {}
0 commit comments