Skip to content

Commit

Permalink
Fix Ruff PLC0206 dict items
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Dec 2, 2024
1 parent 7fa714b commit b2d7dcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions regions/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def update(self, *args, **kwargs):
if len(args) > 1:
raise ValueError('Only one argument can be input')
other = dict(args[0])
for key in other:
self[key] = other[key]
for key in kwargs:
self[key] = kwargs[key]
for key, value in other.items():
self[key] = value
for key, value in kwargs.items():
self[key] = value

def setdefault(self, key, value=None):
if key not in self:
Expand Down

0 comments on commit b2d7dcf

Please sign in to comment.