Skip to content

Commit

Permalink
🔧 refactor: remove unused import and update type hint in mermaid.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Dec 13, 2024
1 parent 42ee81f commit 8ab5404
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/telegramify_markdown/mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import requests
from PIL import Image
from typing_extensions import Buffer

from telegramify_markdown.logger import logger

Expand Down Expand Up @@ -56,7 +55,7 @@ def is_image(data: BytesIO) -> bool:
return False


def compress_to_deflate(data: Union[Buffer, bytes]) -> bytes:
def compress_to_deflate(data: Union[bytes]) -> bytes:
"""
Compress the data using the DEFLATE algorithm.
:param data: The data to compress
Expand Down

0 comments on commit 8ab5404

Please sign in to comment.