Skip to content

Commit

Permalink
Apply preview ruff/Pylint rule PLC0206
Browse files Browse the repository at this point in the history
PLC0206 Extracting value from dictionary without calling `.items()`
  • Loading branch information
DimitriPapadopoulos committed Jun 29, 2024
1 parent 801665f commit 60d2a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipx/commands/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def environment(value: str) -> ExitCode:
print("")
print("Derived values (computed by pipx):")
print("")
for env_variable in derived_values:
print(f"{env_variable}={derived_values[env_variable]}")
for env_variable, derived_value in derived_values.items():
print(f"{env_variable}={derived_value}")
elif value in derived_values:
print(derived_values[value])
else:
Expand Down

0 comments on commit 60d2a88

Please sign in to comment.