We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd107e commit 123f923Copy full SHA for 123f923
src/pdl/pdl_scheduler.py
@@ -1,14 +1,13 @@
1
from typing import Any, Optional
2
3
from termcolor import colored
4
-from termcolor._types import Color
5
6
from .pdl_ast import BlockKind
7
from .pdl_utils import stringify
8
9
10
def color_of(kind: BlockKind):
11
- color: Optional[Color]
+ color: Optional[str]
12
match kind:
13
case BlockKind.FUNCTION:
14
color = None
@@ -52,7 +51,7 @@ def color_of(kind: BlockKind):
52
51
53
54
def color_of_role(role: str):
55
- color: Optional[Color] = None
+ color: Optional[str] = None
56
match role:
57
case "assistant":
58
color = "green"
0 commit comments