Skip to content

Commit cd6f460

Browse files
committed
Fix typing due to new jupyter_client version
1 parent b0678ba commit cd6f460

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ipykernel/inprocess/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from jupyter_client.client import KernelClient
1919
from jupyter_client.clientabc import KernelClientABC
20+
from jupyter_client.connect import KernelConnectionInfo
2021
from jupyter_core.utils import run_sync
2122

2223
# IPython imports
@@ -59,10 +60,10 @@ def _default_blocking_class(self):
5960

6061
return BlockingInProcessKernelClient
6162

62-
def get_connection_info(self, session: bool = False) -> dict[str, int | str | bytes]:
63+
def get_connection_info(self, session: bool = False) -> KernelConnectionInfo:
6364
"""Get the connection info for the client."""
6465
d = super().get_connection_info(session=session)
65-
d["kernel"] = self.kernel # type:ignore[assignment]
66+
d["kernel"] = self.kernel # type: ignore[typeddict-unknown-key]
6667
return d
6768

6869
def start_channels(self, *args, **kwargs):

0 commit comments

Comments
 (0)