mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
Solve issue 154: Fix wrong type for size in File. (#156)
This commit is contained in:
@@ -14,6 +14,7 @@ class File(FileProxyMixin, IO[Any]):
|
|||||||
def __init__(self, file: Any, name: Optional[str] = ...) -> None: ...
|
def __init__(self, file: Any, name: Optional[str] = ...) -> None: ...
|
||||||
def __bool__(self) -> bool: ...
|
def __bool__(self) -> bool: ...
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
|
@property
|
||||||
def size(self) -> int: ...
|
def size(self) -> int: ...
|
||||||
def chunks(self, chunk_size: Optional[int] = ...) -> Iterator[bytes]: ...
|
def chunks(self, chunk_size: Optional[int] = ...) -> Iterator[bytes]: ...
|
||||||
def multiple_chunks(self, chunk_size: Optional[int] = ...) -> bool: ...
|
def multiple_chunks(self, chunk_size: Optional[int] = ...) -> bool: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user