fixing type

This commit is contained in:
João Moura
2024-09-16 06:20:40 -03:00
parent e5ff0363d9
commit 353e925b4f

View File

@@ -1,5 +1,8 @@
from typing import Optional
class Printer:
def print(self, content: str, color: str = None):
def print(self, content: str, color: Optional[str] = None):
if color == "purple":
self._print_purple(content)
elif color == "red":