Skip to content

Commit

Permalink
chore: fix ruff error, PLC0206
Browse files Browse the repository at this point in the history
Extracting value from dictionary without calling `.items()`

Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Dec 10, 2024
1 parent ca169fa commit b7132a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def build_script(self, name: str, extra_args: list[str] | None = None) -> Script
def update_settings(self, d: dict[str, str | bool]) -> None:
settings = self.settings
changed = False
for new in d:
for new in d.keys():
if new not in settings:
settings[new] = d[new]
changed = True

Check failure on line 739 in pipenv/project.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (PLC0206)

pipenv/project.py:736:9: PLC0206 Extracting value from dictionary without calling `.items()`
Expand Down

0 comments on commit b7132a3

Please sign in to comment.