Skip to content

Commit 42e4bd1

Browse files
committed
format
1 parent dd9d536 commit 42e4bd1

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

IPython/terminal/interactiveshell.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,12 @@ def _merge_shortcuts(self, user_shortcuts):
515515
create_identifier(binding.command): binding.command
516516
for binding in KEY_BINDINGS
517517
}
518-
allowed_commands.update({
518+
allowed_commands.update(
519+
{
519520
create_identifier(command): command
520521
for command in UNASSIGNED_ALLOWED_COMMANDS
521-
})
522+
}
523+
)
522524
shortcuts_to_skip = []
523525
shortcuts_to_add = []
524526

@@ -591,12 +593,14 @@ def _merge_shortcuts(self, user_shortcuts):
591593
RuntimeBinding(
592594
command,
593595
keys=new_keys or old_keys,
594-
filter=filter_from_string(new_filter)
595-
if new_filter is not None
596-
else (
597-
old_filter
598-
if old_filter is not None
599-
else filter_from_string("always")
596+
filter=(
597+
filter_from_string(new_filter)
598+
if new_filter is not None
599+
else (
600+
old_filter
601+
if old_filter is not None
602+
else filter_from_string("always")
603+
)
600604
),
601605
)
602606
)

0 commit comments

Comments
 (0)