mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
fixing type
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
|
||||||
class Printer:
|
class Printer:
|
||||||
def print(self, content: str, color: str = None):
|
def print(self, content: str, color: Optional[str] = None):
|
||||||
if color == "purple":
|
if color == "purple":
|
||||||
self._print_purple(content)
|
self._print_purple(content)
|
||||||
elif color == "red":
|
elif color == "red":
|
||||||
|
|||||||
Reference in New Issue
Block a user