Skip to content

Commit bf3509d

Browse files
chore: update pre-commit hooks (#1538)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ian Thomas <ianthomas23@gmail.com>
1 parent 5d56460 commit bf3509d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
types_or: [yaml, html, json]
4040

4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: "v2.1.0"
42+
rev: "v2.3.0"
4343
hooks:
4444
- id: mypy
4545
files: ipykernel
@@ -95,7 +95,7 @@ repos:
9595
- id: rst-inline-touching-normal
9696

9797
- repo: https://github.com/astral-sh/ruff-pre-commit
98-
rev: v0.15.20
98+
rev: v0.15.21
9999
hooks:
100100
- id: ruff-check
101101
types_or: [python, jupyter]

ipykernel/kernelbase.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)