@@ -381,7 +381,7 @@ async def _async_restart_kernel(self, kernel_id: str, now: bool = False) -> None
381
381
restart_kernel = run_sync (_async_restart_kernel )
382
382
383
383
@kernel_method
384
- def is_alive (self , kernel_id : str ) -> bool :
384
+ def is_alive (self , kernel_id : str ) -> bool : # type:ignore[empty-body]
385
385
"""Is the kernel alive.
386
386
387
387
This calls KernelManager.is_alive() which calls Popen.poll on the
@@ -422,7 +422,7 @@ def remove_restart_callback(
422
422
"""remove a callback for the KernelRestarter"""
423
423
424
424
@kernel_method
425
- def get_connection_info (self , kernel_id : str ) -> t .Dict [str , t .Any ]:
425
+ def get_connection_info (self , kernel_id : str ) -> t .Dict [str , t .Any ]: # type:ignore[empty-body]
426
426
"""Return a dictionary of connection data for a kernel.
427
427
428
428
Parameters
@@ -440,7 +440,9 @@ def get_connection_info(self, kernel_id: str) -> t.Dict[str, t.Any]:
440
440
"""
441
441
442
442
@kernel_method
443
- def connect_iopub (self , kernel_id : str , identity : t .Optional [bytes ] = None ) -> socket .socket :
443
+ def connect_iopub ( # type:ignore[empty-body]
444
+ self , kernel_id : str , identity : t .Optional [bytes ] = None
445
+ ) -> socket .socket :
444
446
"""Return a zmq Socket connected to the iopub channel.
445
447
446
448
Parameters
@@ -456,7 +458,9 @@ def connect_iopub(self, kernel_id: str, identity: t.Optional[bytes] = None) -> s
456
458
"""
457
459
458
460
@kernel_method
459
- def connect_shell (self , kernel_id : str , identity : t .Optional [bytes ] = None ) -> socket .socket :
461
+ def connect_shell ( # type:ignore[empty-body]
462
+ self , kernel_id : str , identity : t .Optional [bytes ] = None
463
+ ) -> socket .socket :
460
464
"""Return a zmq Socket connected to the shell channel.
461
465
462
466
Parameters
@@ -472,7 +476,9 @@ def connect_shell(self, kernel_id: str, identity: t.Optional[bytes] = None) -> s
472
476
"""
473
477
474
478
@kernel_method
475
- def connect_control (self , kernel_id : str , identity : t .Optional [bytes ] = None ) -> socket .socket :
479
+ def connect_control ( # type:ignore[empty-body]
480
+ self , kernel_id : str , identity : t .Optional [bytes ] = None
481
+ ) -> socket .socket :
476
482
"""Return a zmq Socket connected to the control channel.
477
483
478
484
Parameters
@@ -488,7 +494,9 @@ def connect_control(self, kernel_id: str, identity: t.Optional[bytes] = None) ->
488
494
"""
489
495
490
496
@kernel_method
491
- def connect_stdin (self , kernel_id : str , identity : t .Optional [bytes ] = None ) -> socket .socket :
497
+ def connect_stdin ( # type:ignore[empty-body]
498
+ self , kernel_id : str , identity : t .Optional [bytes ] = None
499
+ ) -> socket .socket :
492
500
"""Return a zmq Socket connected to the stdin channel.
493
501
494
502
Parameters
@@ -504,7 +512,9 @@ def connect_stdin(self, kernel_id: str, identity: t.Optional[bytes] = None) -> s
504
512
"""
505
513
506
514
@kernel_method
507
- def connect_hb (self , kernel_id : str , identity : t .Optional [bytes ] = None ) -> socket .socket :
515
+ def connect_hb ( # type:ignore[empty-body]
516
+ self , kernel_id : str , identity : t .Optional [bytes ] = None
517
+ ) -> socket .socket :
508
518
"""Return a zmq Socket connected to the hb channel.
509
519
510
520
Parameters
0 commit comments