Skip to content

Commit c348f30

Browse files
committed
fix: remove enums from protocol
1 parent ac69a26 commit c348f30

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

spyder/plugins/remoteclient/api/manager/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def __create_events(self):
103103
self.__abort_requested = asyncio.Event()
104104
self.__lock = asyncio.Lock()
105105

106-
def _emit_connection_status(self, status: ConnectionStatus, message: str):
106+
def _emit_connection_status(self, status: str, message: str):
107107
if self._plugin is not None:
108108
self._plugin.sig_connection_status_changed.emit(
109109
ConnectionInfo(

spyder/plugins/remoteclient/api/protocol.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from __future__ import annotations
1212
import logging
1313
import typing
14-
from enum import Enum
1514

1615

1716
class KernelInfo(typing.TypedDict):
@@ -54,12 +53,12 @@ class JupyterHubClientOptions(typing.TypedDict):
5453
default_kernel_spec: str | None
5554

5655

57-
class ClientType(Enum):
56+
class ClientType:
5857
SSH = "ssh"
5958
JupyterHub = "jupyterhub"
6059

6160

62-
class ConnectionStatus(Enum):
61+
class ConnectionStatus:
6362
Inactive = "inactive"
6463
Connecting = "connecting"
6564
Connected = "connected"
@@ -71,7 +70,7 @@ class ConnectionStatus(Enum):
7170

7271
class ConnectionInfo(typing.TypedDict):
7372
id: str
74-
status: ConnectionStatus
73+
status: str
7574
message: str
7675

7776

0 commit comments

Comments
 (0)