mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 03:27:34 +00:00
feat: Add type hints and improve type safety across multiple modules
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user