Skip to content

Commit 45f2793

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

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

ipykernel/kernelbase.py

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,7 @@ async def execute_request(self, socket, ident, parent):
752752
reply_content = await reply_content
753753
else:
754754
warnings.warn(
755-
_AWAITABLE_MESSAGE.format(
756-
func_name="do_execute", target=self.do_execute
757-
),
755+
_AWAITABLE_MESSAGE.format(func_name="do_execute", target=self.do_execute),
758756
PendingDeprecationWarning,
759757
stacklevel=1,
760758
)
@@ -820,9 +818,7 @@ async def complete_request(self, socket, ident, parent):
820818
matches = await matches
821819
else:
822820
warnings.warn(
823-
_AWAITABLE_MESSAGE.format(
824-
func_name="do_complete", target=self.do_complete
825-
),
821+
_AWAITABLE_MESSAGE.format(func_name="do_complete", target=self.do_complete),
826822
PendingDeprecationWarning,
827823
stacklevel=1,
828824
)
@@ -856,9 +852,7 @@ async def inspect_request(self, socket, ident, parent):
856852
reply_content = await reply_content
857853
else:
858854
warnings.warn(
859-
_AWAITABLE_MESSAGE.format(
860-
func_name="do_inspect", target=self.do_inspect
861-
),
855+
_AWAITABLE_MESSAGE.format(func_name="do_inspect", target=self.do_inspect),
862856
PendingDeprecationWarning,
863857
stacklevel=1,
864858
)
@@ -883,9 +877,7 @@ async def history_request(self, socket, ident, parent):
883877
reply_content = await reply_content
884878
else:
885879
warnings.warn(
886-
_AWAITABLE_MESSAGE.format(
887-
func_name="do_history", target=self.do_history
888-
),
880+
_AWAITABLE_MESSAGE.format(func_name="do_history", target=self.do_history),
889881
PendingDeprecationWarning,
890882
stacklevel=1,
891883
)
@@ -1008,9 +1000,7 @@ async def shutdown_request(self, socket, ident, parent):
10081000
content = await content
10091001
else:
10101002
warnings.warn(
1011-
_AWAITABLE_MESSAGE.format(
1012-
func_name="do_shutdown", target=self.do_shutdown
1013-
),
1003+
_AWAITABLE_MESSAGE.format(func_name="do_shutdown", target=self.do_shutdown),
10141004
PendingDeprecationWarning,
10151005
stacklevel=1,
10161006
)
@@ -1040,9 +1030,7 @@ async def is_complete_request(self, socket, ident, parent):
10401030
reply_content = await reply_content
10411031
else:
10421032
warnings.warn(
1043-
_AWAITABLE_MESSAGE.format(
1044-
func_name="do_is_complete", target=self.do_is_complete
1045-
),
1033+
_AWAITABLE_MESSAGE.format(func_name="do_is_complete", target=self.do_is_complete),
10461034
PendingDeprecationWarning,
10471035
stacklevel=1,
10481036
)

0 commit comments

Comments
 (0)