Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 26, 2022
1 parent 7d05cfb commit 692bc30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jupyter_client/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ def _close_control_socket(self) -> None:
self._control_socket.close()
self._control_socket = None

async def _async_pre_start_kernel(self, **kw: t.Any) -> t.Tuple[t.List[str], t.Dict[str, t.Any]]:
async def _async_pre_start_kernel(
self, **kw: t.Any
) -> t.Tuple[t.List[str], t.Dict[str, t.Any]]:
"""Prepares a kernel for startup in a separate process.
If random ports (port=0) are being used, this method must be called
Expand Down
4 changes: 3 additions & 1 deletion jupyter_client/multikernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def _using_pending_kernels(self):
"""
return getattr(self, 'use_pending_kernels', False)

async def _async_start_kernel(self, kernel_name: t.Optional[str] = None, **kwargs: t.Any) -> str:
async def _async_start_kernel(
self, kernel_name: t.Optional[str] = None, **kwargs: t.Any
) -> str:
"""Start a new kernel.
The caller can pick a kernel_id by passing one in as a keyword arg,
Expand Down

0 comments on commit 692bc30

Please sign in to comment.