feat: Add type hints and improve type safety across multiple modules

This commit is contained in:
sha
2026-04-12 22:41:47 +03:00
parent f2af482154
commit bcc6b03ae2
20 changed files with 79 additions and 51 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
"""Rich-pixels renderer for high-quality terminal image display."""
from .base import PosterRenderer
from typing import Union
from typing import Any
class RichPixelsPosterRenderer(PosterRenderer):
"""Render posters using rich-pixels library for high-quality display."""
def render(self, image_path: str, width: int = 40) -> Union[str, object]:
def render(self, image_path: str, width: int = 40) -> Any:
"""Render poster using rich-pixels.
Args: