Skip to content

Commit 184157a

Browse files
[pre-commit.ci] pre-commit autoupdate (#235)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b1fadb3 commit 184157a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.2.2
3+
rev: v0.3.2
44
hooks:
55
- id: ruff
66
args: ["--fix"]

mne_qt_browser/_pg_figure.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,9 +2595,9 @@ def _edit_description_all(self, new_des):
25952595
self.mne.visible_annotations[new_des] = self.mne.visible_annotations.pop(
25962596
old_des
25972597
)
2598-
self.mne.annotation_segment_colors[
2599-
new_des
2600-
] = self.mne.annotation_segment_colors.pop(old_des)
2598+
self.mne.annotation_segment_colors[new_des] = (
2599+
self.mne.annotation_segment_colors.pop(old_des)
2600+
)
26012601

26022602
# Update related widgets
26032603
self.weakmain()._setup_annotation_colors()
@@ -2622,9 +2622,9 @@ def _edit_description_selected(self, new_des):
26222622
if old_des not in self.mne.inst.annotations.description:
26232623
self.mne.new_annotation_labels.remove(old_des)
26242624
self.mne.visible_annotations.pop(old_des)
2625-
self.mne.annotation_segment_colors[
2626-
new_des
2627-
] = self.mne.annotation_segment_colors.pop(old_des)
2625+
self.mne.annotation_segment_colors[new_des] = (
2626+
self.mne.annotation_segment_colors.pop(old_des)
2627+
)
26282628

26292629
# Update related widgets
26302630
self.weakmain()._setup_annotation_colors()

0 commit comments

Comments
 (0)