We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django File.size is a property type: @cached_property def size(self): ... https://github.com/django/django/blob/master/django/core/files/base.py#L32
@cached_property def size(self): ...
But in stubs it's treated like callable function (which is wrong): def size(self) -> int: ... https://github.com/typeddjango/django-stubs/blob/master/django-stubs/core/files/base.pyi#L17
def size(self) -> int: ...
The text was updated successfully, but these errors were encountered:
@wlisesrivas can you please change def size(self) -> int: ... to be @property?
@property
Sorry, something went wrong.
@sobolevn you mean create a pull-request fixing that? If so, sure.
Yes 🙂
Closed by #156
Updates django.contrib.postgres.indexes types (typeddjango#154)
4f6e1c5
Close typeddjango#153
No branches or pull requests
Django File.size is a property type:
@cached_property def size(self): ...
https://github.com/django/django/blob/master/django/core/files/base.py#L32
But in stubs it's treated like callable function (which is wrong):
def size(self) -> int: ...
https://github.com/typeddjango/django-stubs/blob/master/django-stubs/core/files/base.pyi#L17
The text was updated successfully, but these errors were encountered: