Skip to content

Commit

Permalink
Correct type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Aug 6, 2024
1 parent 4bf294e commit 4a6f6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/line_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ def __init__(self, line_token: str | None = None):
def send_notification(
self,
message: str,
image: np.ndarray | None = None,
image: np.ndarray | bytes | None = None,
) -> int:
"""
Sends a notification via LINE Notify, optionally including an image.
Args:
message (str): The message to send.
label (Optional[str]): The label of the image_name.
image (Optional[np.ndarray]): The image to send with the message.
image (Optional[np.ndarray | bytes]): Image sent with the message.
Defaults to None.
Returns:
Expand Down

0 comments on commit 4a6f6b1

Please sign in to comment.