|
10 | 10 | from queue import Empty
|
11 | 11 |
|
12 | 12 | import zmq.asyncio
|
13 |
| -from traitlets import Any # type: ignore |
| 13 | +from traitlets import Any |
14 | 14 | from traitlets import Bool
|
15 | 15 | from traitlets import Instance
|
16 | 16 | from traitlets import Type
|
@@ -120,19 +120,19 @@ def _context_default(self) -> zmq.asyncio.Context:
|
120 | 120 | # Channel proxy methods
|
121 | 121 | # --------------------------------------------------------------------------
|
122 | 122 |
|
123 |
| - async def _async_get_shell_msg(self, *args, **kwargs) -> t.Dict[str, t.Any]: |
| 123 | + async def _async_get_shell_msg(self, *args: Any, **kwargs: Any) -> t.Dict[str, t.Any]: |
124 | 124 | """Get a message from the shell channel"""
|
125 | 125 | return await self.shell_channel.get_msg(*args, **kwargs)
|
126 | 126 |
|
127 |
| - async def _async_get_iopub_msg(self, *args, **kwargs) -> t.Dict[str, t.Any]: |
| 127 | + async def _async_get_iopub_msg(self, *args: Any, **kwargs: Any) -> t.Dict[str, t.Any]: |
128 | 128 | """Get a message from the iopub channel"""
|
129 | 129 | return await self.iopub_channel.get_msg(*args, **kwargs)
|
130 | 130 |
|
131 |
| - async def _async_get_stdin_msg(self, *args, **kwargs) -> t.Dict[str, t.Any]: |
| 131 | + async def _async_get_stdin_msg(self, *args: Any, **kwargs: Any) -> t.Dict[str, t.Any]: |
132 | 132 | """Get a message from the stdin channel"""
|
133 | 133 | return await self.stdin_channel.get_msg(*args, **kwargs)
|
134 | 134 |
|
135 |
| - async def _async_get_control_msg(self, *args, **kwargs) -> t.Dict[str, t.Any]: |
| 135 | + async def _async_get_control_msg(self, *args: Any, **kwargs: Any) -> t.Dict[str, t.Any]: |
136 | 136 | """Get a message from the control channel"""
|
137 | 137 | return await self.control_channel.get_msg(*args, **kwargs)
|
138 | 138 |
|
@@ -253,7 +253,7 @@ def _output_hook_kernel(
|
253 | 253 | self,
|
254 | 254 | session: Session,
|
255 | 255 | socket: zmq.sugar.socket.Socket,
|
256 |
| - parent_header, |
| 256 | + parent_header: Any, |
257 | 257 | msg: t.Dict[str, t.Any],
|
258 | 258 | ) -> None:
|
259 | 259 | """Output hook when running inside an IPython kernel
|
@@ -676,7 +676,7 @@ def history(
|
676 | 676 | raw: bool = True,
|
677 | 677 | output: bool = False,
|
678 | 678 | hist_access_type: str = "range",
|
679 |
| - **kwargs, |
| 679 | + **kwargs: Any, |
680 | 680 | ) -> str:
|
681 | 681 | """Get entries from the kernel's history list.
|
682 | 682 |
|
|
0 commit comments