From a0811caacfbde82f781276116b677faa72d575e4 Mon Sep 17 00:00:00 2001 From: Wlises R Date: Thu, 5 Sep 2019 18:11:46 -0400 Subject: [PATCH] Solve issue 154: Fix wrong type for size in File. --- django-stubs/core/files/base.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/core/files/base.pyi b/django-stubs/core/files/base.pyi index 6c27bbc93..2d84fdacf 100644 --- a/django-stubs/core/files/base.pyi +++ b/django-stubs/core/files/base.pyi @@ -14,6 +14,7 @@ class File(FileProxyMixin, IO[Any]): def __init__(self, file: Any, name: Optional[str] = ...) -> None: ... def __bool__(self) -> bool: ... def __len__(self) -> int: ... + @property def size(self) -> int: ... def chunks(self, chunk_size: Optional[int] = ...) -> Iterator[bytes]: ... def multiple_chunks(self, chunk_size: Optional[int] = ...) -> bool: ...