@@ -39,11 +39,11 @@ class InProcessKernelClient(KernelClient):
39
39
"""
40
40
41
41
# 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]
47
47
48
48
kernel = Instance ("ipykernel.inprocess.ipkernel.InProcessKernel" , allow_none = True )
49
49
@@ -72,31 +72,33 @@ def start_channels(self, *args, **kwargs):
72
72
@property
73
73
def shell_channel (self ):
74
74
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 ]
76
76
return self ._shell_channel
77
77
78
78
@property
79
79
def iopub_channel (self ):
80
80
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 ]
82
82
return self ._iopub_channel
83
83
84
84
@property
85
85
def stdin_channel (self ):
86
86
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 ]
88
88
return self ._stdin_channel
89
89
90
90
@property
91
91
def control_channel (self ):
92
92
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]
94
96
return self ._control_channel
95
97
96
98
@property
97
99
def hb_channel (self ):
98
100
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 ]
100
102
return self ._hb_channel
101
103
102
104
# Methods for sending specific messages
0 commit comments