Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/pdl/pdl_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from typing import Any, Optional

from termcolor import colored
from termcolor._types import Color

from .pdl_ast import BlockKind
from .pdl_utils import stringify


def color_of(kind: BlockKind):
color: Optional[Color]
color: Optional[str]
match kind:
case BlockKind.FUNCTION:
color = None
Expand Down Expand Up @@ -52,7 +51,7 @@ def color_of(kind: BlockKind):


def color_of_role(role: str):
color: Optional[Color] = None
color: Optional[str] = None
match role:
case "assistant":
color = "green"
Expand Down