django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

PEP-484 stubs for Django

Results 301 django-stubs issues
Sort by recently updated
recently updated
newest added

## What's wrong The current definition for `django.views.static.serve` specifies the return type as `HttpResponseBase`. Prior to that. it was specified as `FileResponse`. ## How is that should be As far...

bug

Edit: As explained in https://github.com/typeddjango/django-stubs/issues/975#issuecomment-1150997683, the properties `fields`, `concrete_fields`, `local_concrete_fields`, `many_to_many` and `related_objects` of the `Option` class are private according to their docstrings, even through they don't start with a...

bug

# Bug report ## What's wrong The [Exists](https://github.com/typeddjango/django-stubs/blob/master/django-stubs/db/models/expressions.pyi#L145) class' first argument is currently type hinted as `queryset: Union[Query, QuerySet]`. I think `Subquery` or a TypeVar bound by `Subquery` should be...

bug

Hey there! Is there a release schedule for this project? I'll often bump into bugs and then see the fix merged, but we'll often go a while without a new...

# Bug report ## What's wrong We have defined a custom `AuthUser` model in our project like: ```python from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin class AuthUser(PermissionsMixin, AbstractBaseUser): class Meta: verbose_name =...

bug

# Bug report ## What's wrong The `check_password()` method of the `AbstractBaseUser` class has an incorrect or too narrow type annotation. It currently defines the parameter `raw_password` as `str`. In...

bug

Hi, Do you plan to support django 4.0.x anytime soon? (or to officialize its support with the current version of django-stubs) Thanks

See discussion in https://github.com/typeddjango/django-stubs/pull/902 as well. I still have most related managers missing after the latest upgrades to the type checker code. The patch we used to have to apply...

bug

This is roughly the code i have in my repo that broke between 1.3.2 and 1.3.3, but this test passes :( I'll try to add more code to it hoping...

When I run mypy, it complains that the Settings object does not have certain attributes. I'm running mypy with `PYTHONPATH` set correctly and I specified the settings module in my...

bug