Skip to content

Commit c3cbc06

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 586376b commit c3cbc06

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

mne/viz/_mpl_figure.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,9 @@ def _apply_mpl_theme_to_kwargs(kwargs):
145145

146146
light_defaults = DEFAULTS["color"]
147147
for ch_type, dark_color in _DARK_CHANNEL_OVERRIDES.items():
148-
if (
149-
ch_type in kwargs["ch_color_dict"]
150-
and kwargs["ch_color_dict"][ch_type] == light_defaults.get(ch_type)
151-
):
148+
if ch_type in kwargs["ch_color_dict"] and kwargs["ch_color_dict"][
149+
ch_type
150+
] == light_defaults.get(ch_type):
152151
kwargs["ch_color_dict"][ch_type] = dark_color
153152

154153

0 commit comments

Comments
 (0)