Skip to content

Commit 123f923

Browse files
authored
chore: remove dependency on termcolor types (#967)
Signed-off-by: Louis Mandel <[email protected]>
1 parent abd107e commit 123f923

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pdl/pdl_scheduler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from typing import Any, Optional
22

33
from termcolor import colored
4-
from termcolor._types import Color
54

65
from .pdl_ast import BlockKind
76
from .pdl_utils import stringify
87

98

109
def color_of(kind: BlockKind):
11-
color: Optional[Color]
10+
color: Optional[str]
1211
match kind:
1312
case BlockKind.FUNCTION:
1413
color = None
@@ -52,7 +51,7 @@ def color_of(kind: BlockKind):
5251

5352

5453
def color_of_role(role: str):
55-
color: Optional[Color] = None
54+
color: Optional[str] = None
5655
match role:
5756
case "assistant":
5857
color = "green"

0 commit comments

Comments
 (0)