Skip to content

Commit

Permalink
Merge pull request #581 from astropy/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
larrybradley authored Dec 2, 2024
2 parents c740e7c + b2d7dcf commit c233d4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ repos:
# Enforce that all noqa annotations always occur with specific codes.

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
rev: "v0.8.1"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
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 c233d4e

Please sign in to comment.