Marti Raudsepp
Marti Raudsepp
Every now and then, users report issues when using the `django-stubs` mypy plugin with old mypy versions that are not compatible, which may be due to being unaware of the...
We have no immediate plans to implement this, but I decided to open this issue for discussions, to split it out from #1337. Original post by @intgr https://github.com/typeddjango/django-stubs/issues/1337#issuecomment-1401668445 > The...
[mypy_primer](https://github.com/hauntsaninja/mypy_primer) is a project that runs mypy on lots of public open source repositories. In CI, it can do a mypy run before and after some proposed changes in a...
# Bug report `django_stubs_ext/django_stubs_ext/patch.py` file contains logic to make more Django's classes generic, by monkeypatching to add `__class_getitem__` the method. Known list of classes that are currently missing monkeypatching: *...
This isn't part of released django-rest-framework, but has been merged upstream for the next release. ## Related issues Upstream PR: https://github.com/encode/django-rest-framework/pull/6789
# I have made danks! Re-using the same `_DefaultInitial[]` type alias that's used for `default=` and `initial=` of most Field classes. The semantics are exactly the same. Mostly `default=None` is...
# I have made thunks! * `ModelSerializer` was incorrectly deriving from `Serializer[Any]` and `BaseSerializer[T]`; replaced with `Serializer[T]`. * Added TypeVar to `HyperlinkedModelSerializer` class. * Removed unnecessary `Generic[]` where implicit TypeVars...
# I have made things! Motivated by examples like #518, #508 and many others. It happens every few weeks that a change in `django-stubs` also requires followup changes in `djangorestframework-stubs`....
These affect `rest_framework-stubs/compat.pyi` which is using some weird hacks that Ruff and mypy don't really like. * PYI002: If test must be a simple comparison against sys.platform or sys.version_info *...
* Adds mypy error codes to output (affects tests) * Requires explicit error codes in `# type: ignore` comments, e.g. `type: ignore[assignment]` * Enables suppressed Ruff lint PGH003. ## Related...