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

# Bug report ``` example.py:42: error: Module "django.contrib.postgres.operations" has no attribute "AddIndexConcurrently" [attr-defined] from django.contrib.postgres.operations import AddIndexConcurrently ^ Found 1 error in 1 file (checked 42 source files) ``` ##...

bug

# Bug report ## What's wrong ``` from django.db import models class MyModel(models.Model): my_field = models.DecimalField(decimal_places=2, max_digits=10, default=0) result = MyModel.objects.values_list('my_field', flat=True).get(id=1) reveal_type(result) # Revealed type is: Optional[Decimal] ``` ##...

bug

`version` is defined explicitly in `setup.py` (https://github.com/typeddjango/django-stubs/blob/2ef7ff33091316d02f51950cbfccc12ba434afb8/setup.py#L35). This causes compatibility issues when using `pip install -e …` for local development, but wanting to revert to the pinned version (`pip install...

bug

# Bug report ## What's wrong When attempting to call the superclass `from_db_value` in a class that inherits from `django.db.models.JSONField`, mypy does not believe that `from_db_value` is defined but it...

bug

I tried to check up the issues that are currently filed here (147 open now). Most of them are labeled as "bug", but not all are real bugs. Examples: -...

# x-post to django-environ: https://github.com/joke2k/django-environ/issues/372 ``` mypy --config-file ../mypy-django.ini project Error constructing plugin instance of NewSemanalDjangoPlugin Traceback (most recent call last): File "/home/sebastian/Repos/src/.tox/mypy/lib/python3.9/site-packages/environ/environ.py", line 367, in get_value value = self.ENVIRON[var]...

bug

Please add [`django.db.backends.sqlite3.base.DatabaseWrapper.is_in_memory_db`](https://github.com/django/django/blob/6f311c7e35090957dd93783b71c5d3af7d5329d4/django/db/backends/sqlite3/base.py#L339)`() -> `[`bool`](https://github.com/django/django/blob/6f311c7e35090957dd93783b71c5d3af7d5329d4/django/db/backends/sqlite3/creation.py#L13-L17).

bug

# Bug report In #909, [the `BaseForm` class's `files` attribute](https://github.com/typeddjango/django-stubs/blob/f69e0639c74fee0e8ad3d165790ac9804ea4a3f2/django-stubs/forms/forms.pyi#L21) (and everything related to it, like the `files` argument to [`Widget.value_from_datadict`](https://github.com/typeddjango/django-stubs/blob/f69e0639c74fee0e8ad3d165790ac9804ea4a3f2/django-stubs/forms/widgets.pyi#L59)) were updated to [`_FilesT`](https://github.com/typeddjango/django-stubs/blob/f69e0639c74fee0e8ad3d165790ac9804ea4a3f2/django-stubs/forms/utils.pyi#L10), which is defined as `Mapping[str,...

bug

get_form either returns a instance of the class's form_class if form_class is None else a instance of the form_class given to the method. I don't know how to make a...

Hey all, I know the README says it doesn't make sense to use `django-stubs` without mypy, because mypy uses a plugin for cases where type hints alone don't work. Sorry...

enhancement
meta
pyright