Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
types_or: [yaml, html, json]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v2.1.0"
rev: "v2.3.0"
hooks:
- id: mypy
files: ipykernel
Expand Down Expand Up @@ -95,7 +95,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.15.21
hooks:
- id: ruff-check
types_or: [python, jupyter]
Expand Down
14 changes: 7 additions & 7 deletions ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ async def execute_request(self, stream, ident, parent):
if inspect.isawaitable(reply_content):
reply_content = await reply_content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_execute", target=self.do_execute),
PendingDeprecationWarning,
stacklevel=1,
Expand Down Expand Up @@ -907,7 +907,7 @@ async def complete_request(self, stream, ident, parent):
if inspect.isawaitable(matches):
matches = await matches
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_complete", target=self.do_complete),
PendingDeprecationWarning,
stacklevel=1,
Expand Down Expand Up @@ -941,7 +941,7 @@ async def inspect_request(self, stream, ident, parent):
if inspect.isawaitable(reply_content):
reply_content = await reply_content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_inspect", target=self.do_inspect),
PendingDeprecationWarning,
stacklevel=1,
Expand All @@ -966,7 +966,7 @@ async def history_request(self, stream, ident, parent):
if inspect.isawaitable(reply_content):
reply_content = await reply_content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_history", target=self.do_history),
PendingDeprecationWarning,
stacklevel=1,
Expand Down Expand Up @@ -1094,7 +1094,7 @@ async def shutdown_request(self, stream, ident, parent):
if inspect.isawaitable(content):
content = await content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_shutdown", target=self.do_shutdown),
PendingDeprecationWarning,
stacklevel=1,
Expand Down Expand Up @@ -1133,7 +1133,7 @@ async def is_complete_request(self, stream, ident, parent):
if inspect.isawaitable(reply_content):
reply_content = await reply_content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(func_name="do_is_complete", target=self.do_is_complete),
PendingDeprecationWarning,
stacklevel=1,
Expand All @@ -1155,7 +1155,7 @@ async def debug_request(self, stream, ident, parent):
if inspect.isawaitable(reply_content):
reply_content = await reply_content
else:
warnings.warn(
warnings.warn( # type:ignore[unreachable]
_AWAITABLE_MESSAGE.format(
func_name="do_debug_request", target=self.do_debug_request
),
Expand Down