Skip to content

Commit a43e28b

Browse files
committed
fix: add new file for types object
1 parent d844f79 commit a43e28b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/mcpm/core/router/types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from enum import Enum
2+
3+
4+
class ConfigType(str, Enum):
5+
FILE = "file"
6+
CLOUD = "cloud"

src/mcpm/core/router/watcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from watchfiles import Change, awatch
1212

1313
from mcpm.core.router.notifier import ConfigUpdateNotifier
14-
from mcpm.core.schema import ConfigType
14+
from mcpm.core.router.types import ConfigType
1515

1616
logger = logging.getLogger(__name__)
1717

src/mcpm/core/schema.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Any, Dict, List, Optional, Union
2-
from enum import Enum
2+
33
from pydantic import BaseModel
44

55

@@ -82,7 +82,3 @@ class Profile(BaseModel):
8282
name: str
8383
api_key: Optional[str]
8484
servers: list[ServerConfig]
85-
86-
class ConfigType(str, Enum):
87-
FILE = "file"
88-
CLOUD = "cloud"

0 commit comments

Comments
 (0)