django-stubs
django-stubs copied to clipboard
PEP-484 stubs for Django
regressed in #2654 cc @UnknownPlatypus
# Bug report regressed in #2635 cc @UnknownPlatypus ## What's wrong https://github.com/getsentry/sentry/blob/fdd78facb166e55f73854d39ff9b89d3df9ff62a/src/sentry/api/client.py#L54-L55 now getting: ``` src/sentry/api/client.py:55: error: "ResolverMatch" object is not iterable [misc] src/sentry/api/client.py:107: error: Cannot determine type of "callback"...
# Bug report seems something in 5.2 caused this to break -- here's a minimal example: ```python from django.test import TestCase from rest_framework.response import Response class T(TestCase): def get_rf_resp(self, url:...
# I have made things! This change correctly resolves ``django.core.files.storage.default_storage`` and ``django.contrib.staticfiles.storage.staticfiles_storage`` which are configured in the project's Django settings. When ``django.core.files.storage.storages``, which has a dict like interface, is accessed...
# I have made things! This PR aims to add type hints to builtin model fields, i.e for example models in `contrib`, `admin`, `auth` etc. Base generic fields are modified...
# Bug report ## What's wrong Having an enum that extends `TextChoices` declared inside another class (e.g. a model), results in the following error when running `mypy`: ``` file.py: error:...
# Security vulenrability for v5.1.3 Since 4.2 still LTS and last supported by v5.1 it would be ideal to have a patch for the following cve ## What's wrong https://data.safetycli.com/vulnerabilities/PVE-2025-76910/76910/...
Although the argument is named `queryset`, it could be any iterable. In fact, `django.contrib.admin` passes in a list instead of a queryset ([source](https://github.com/django/django/blob/5.2.3/django/contrib/admin/options.py#L953-L959)). Currently, `django-stubs` says that it must be...
# I have made things! Run ci with supported mypy version ie `1.13`, `1.14`, `1.15`, `1.16` and `master` branch on github.
# Bug report Thanks so much for this library! It's invaluable ## What's wrong I've just updated to version 5.2.0 and am trying to set the new type parameter on...