Skip to content

Commit 15338a2

Browse files
committed
Apply black
1 parent b54039d commit 15338a2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

bpython/autocomplete.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,11 @@ def matches(
517517
complete_magic_methods: Optional[bool] = None,
518518
**kwargs: Any,
519519
) -> Optional[Set]:
520-
if current_block is None or complete_magic_methods is None or not complete_magic_methods:
520+
if (
521+
current_block is None
522+
or complete_magic_methods is None
523+
or not complete_magic_methods
524+
):
521525
return None
522526

523527
r = self.locate(cursor_offset, line)

bpython/test/test_autocomplete.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ def test_magic_methods_complete_after_double_underscores(self):
324324
com = autocomplete.MagicMethodCompletion()
325325
block = "class Something(object)\n def __"
326326
self.assertSetEqual(
327-
com.matches(10, " def __", current_block=block, complete_magic_methods=True),
327+
com.matches(
328+
10,
329+
" def __",
330+
current_block=block,
331+
complete_magic_methods=True,
332+
),
328333
set(autocomplete.MAGIC_METHODS),
329334
)
330335

0 commit comments

Comments
 (0)