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

mypy 0.971 was released a short while ago (https://github.com/python/mypy/releases/tag/v0.971). `django-stubs` currently enforces a version less than 0.970 (https://github.com/typeddjango/django-stubs/blob/master/setup.py#L34), please enable support for 0.971. Due to changes https://github.com/python/mypy/pull/11143 the tests currently...

bug

Work in progress to add type for changes to Django forms introduced in both 4.0 and 4.1.

This is not a bug report, but a suggestion for a feature. This is a breaking change and requires some hackery. It's something I'm doing in my project, and something...

bug
pyright

# Bug report ## What's wrong ```python from django.core.files import File def __call__(self, value: File) -> None: ``` Mypy says: Missing type parameters for generic type "File" If I use...

bug

Bug fixes: * This pull requests fixes a bug introduced in #991 that throws "Sequence is not defined". `bind_or_analyze_type` should not check `node.type`, returning it anyway (`None` too). It make...

# Bug report ## What's wrong On the latest master mypy will crash when writing the cache when checking certain files. This does not happen when checking the full project,...

bug

I've reorganised and extended dynamic manager class generation to support `.as_manager()`. This also renames the dynamically generated manager types to align with what those class names will be during runtime,...

# Bug report I've updated `django-stubs-ext` from 0.4.0 to 0.5.0 and got a lof of error messages from mypy. Before, mypy didn't complain There might actually be nothing wrong with...

bug
mypy-plugin
3rd party

# Bug report The `context` in the return types of `test.client.Client.get` etc. functions cannot be intuitiively used. ## What's wrong `_MonkeyPatchedWSGIResponse` and `_MonkeyPatchedASGIResponse` use ``` context: List[Dict[str, Any]] ``` Therefore,...

bug

# Bug report The type stub for `django.test.ContextList` is incomplete. ## What's wrong https://github.com/typeddjango/django-stubs/blob/master/django-stubs/test/utils.pyi#L44-L46 Is missing `__getitem__(str)` and `__contains__(str)`. Technically, `get(int)` is also missing. I also think that the type...

bug