@@ -845,7 +845,7 @@ async def execute_request(self, stream, ident, parent):
845845 if inspect .isawaitable (reply_content ):
846846 reply_content = await reply_content
847847 else :
848- warnings .warn (
848+ warnings .warn ( # type:ignore[unreachable]
849849 _AWAITABLE_MESSAGE .format (func_name = "do_execute" , target = self .do_execute ),
850850 PendingDeprecationWarning ,
851851 stacklevel = 1 ,
@@ -907,7 +907,7 @@ async def complete_request(self, stream, ident, parent):
907907 if inspect .isawaitable (matches ):
908908 matches = await matches
909909 else :
910- warnings .warn (
910+ warnings .warn ( # type:ignore[unreachable]
911911 _AWAITABLE_MESSAGE .format (func_name = "do_complete" , target = self .do_complete ),
912912 PendingDeprecationWarning ,
913913 stacklevel = 1 ,
@@ -941,7 +941,7 @@ async def inspect_request(self, stream, ident, parent):
941941 if inspect .isawaitable (reply_content ):
942942 reply_content = await reply_content
943943 else :
944- warnings .warn (
944+ warnings .warn ( # type:ignore[unreachable]
945945 _AWAITABLE_MESSAGE .format (func_name = "do_inspect" , target = self .do_inspect ),
946946 PendingDeprecationWarning ,
947947 stacklevel = 1 ,
@@ -966,7 +966,7 @@ async def history_request(self, stream, ident, parent):
966966 if inspect .isawaitable (reply_content ):
967967 reply_content = await reply_content
968968 else :
969- warnings .warn (
969+ warnings .warn ( # type:ignore[unreachable]
970970 _AWAITABLE_MESSAGE .format (func_name = "do_history" , target = self .do_history ),
971971 PendingDeprecationWarning ,
972972 stacklevel = 1 ,
@@ -1094,7 +1094,7 @@ async def shutdown_request(self, stream, ident, parent):
10941094 if inspect .isawaitable (content ):
10951095 content = await content
10961096 else :
1097- warnings .warn (
1097+ warnings .warn ( # type:ignore[unreachable]
10981098 _AWAITABLE_MESSAGE .format (func_name = "do_shutdown" , target = self .do_shutdown ),
10991099 PendingDeprecationWarning ,
11001100 stacklevel = 1 ,
@@ -1133,7 +1133,7 @@ async def is_complete_request(self, stream, ident, parent):
11331133 if inspect .isawaitable (reply_content ):
11341134 reply_content = await reply_content
11351135 else :
1136- warnings .warn (
1136+ warnings .warn ( # type:ignore[unreachable]
11371137 _AWAITABLE_MESSAGE .format (func_name = "do_is_complete" , target = self .do_is_complete ),
11381138 PendingDeprecationWarning ,
11391139 stacklevel = 1 ,
@@ -1155,7 +1155,7 @@ async def debug_request(self, stream, ident, parent):
11551155 if inspect .isawaitable (reply_content ):
11561156 reply_content = await reply_content
11571157 else :
1158- warnings .warn (
1158+ warnings .warn ( # type:ignore[unreachable]
11591159 _AWAITABLE_MESSAGE .format (
11601160 func_name = "do_debug_request" , target = self .do_debug_request
11611161 ),
0 commit comments