Skip to content

Commit

Permalink
use: Union
Browse files Browse the repository at this point in the history
  • Loading branch information
nanato12 committed May 28, 2024
1 parent 83fa608 commit 0538b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from io import BufferedReader, BytesIO
from typing import Any
from typing import Any, Union

import requests
from pydantic import BaseModel, StrictStr
Expand Down Expand Up @@ -39,7 +39,7 @@ def send_image_with_local_path(
return self.send_image(text, open(path, "rb"))

def send_image(
self, text: StrictStr, image: BufferedReader | BytesIO
self, text: StrictStr, image: Union[BufferedReader, BytesIO]
) -> Response:
return self.send(
{
Expand Down

0 comments on commit 0538b82

Please sign in to comment.