@@ -39,11 +39,11 @@ class InProcessKernelClient(KernelClient):
3939 """
4040
4141 # The classes to use for the various channels.
42- shell_channel_class = Type (InProcessChannel )
43- iopub_channel_class = Type (InProcessChannel )
44- stdin_channel_class = Type (InProcessChannel )
45- control_channel_class = Type (InProcessChannel )
46- hb_channel_class = Type (InProcessHBChannel )
42+ shell_channel_class = Type (InProcessChannel ) # type:ignore[arg-type]
43+ iopub_channel_class = Type (InProcessChannel ) # type:ignore[arg-type]
44+ stdin_channel_class = Type (InProcessChannel ) # type:ignore[arg-type]
45+ control_channel_class = Type (InProcessChannel ) # type:ignore[arg-type]
46+ hb_channel_class = Type (InProcessHBChannel ) # type:ignore[arg-type]
4747
4848 kernel = Instance ("ipykernel.inprocess.ipkernel.InProcessKernel" , allow_none = True )
4949
@@ -72,31 +72,33 @@ def start_channels(self, *args, **kwargs):
7272 @property
7373 def shell_channel (self ):
7474 if self ._shell_channel is None :
75- self ._shell_channel = self .shell_channel_class (self ) # type:ignore[operator ]
75+ self ._shell_channel = self .shell_channel_class (self ) # type:ignore[abstract,call-arg ]
7676 return self ._shell_channel
7777
7878 @property
7979 def iopub_channel (self ):
8080 if self ._iopub_channel is None :
81- self ._iopub_channel = self .iopub_channel_class (self ) # type:ignore[operator ]
81+ self ._iopub_channel = self .iopub_channel_class (self ) # type:ignore[abstract,call-arg ]
8282 return self ._iopub_channel
8383
8484 @property
8585 def stdin_channel (self ):
8686 if self ._stdin_channel is None :
87- self ._stdin_channel = self .stdin_channel_class (self ) # type:ignore[operator ]
87+ self ._stdin_channel = self .stdin_channel_class (self ) # type:ignore[abstract,call-arg ]
8888 return self ._stdin_channel
8989
9090 @property
9191 def control_channel (self ):
9292 if self ._control_channel is None :
93- self ._control_channel = self .control_channel_class (self ) # type:ignore[operator]
93+ self ._control_channel = self .control_channel_class (
94+ self
95+ ) # type:ignore[abstract,call-arg]
9496 return self ._control_channel
9597
9698 @property
9799 def hb_channel (self ):
98100 if self ._hb_channel is None :
99- self ._hb_channel = self .hb_channel_class (self ) # type:ignore[operator ]
101+ self ._hb_channel = self .hb_channel_class (self ) # type:ignore[abstract,call-arg ]
100102 return self ._hb_channel
101103
102104 # Methods for sending specific messages
0 commit comments