diff --git a/discord-stubs/file.pyi b/discord-stubs/file.pyi index bc1dfe2..9dbb121 100644 --- a/discord-stubs/file.pyi +++ b/discord-stubs/file.pyi @@ -1,12 +1,13 @@ +from io import BytesIO, StringIO from typing import BinaryIO, Optional, Union class File: - fp: Union[str, BinaryIO] + fp: Union[str, BinaryIO, BytesIO, StringIO] filename: Optional[str] spoiler: bool def __init__( self, - fp: Union[str, BinaryIO], + fp: Union[str, BinaryIO, BytesIO, StringIO], filename: Optional[str] = ..., *, spoiler: bool = ...,