Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions discord-stubs/file.pyi
Original file line number Diff line number Diff line change
@@ -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 = ...,
Expand Down