- Fix compatibility with mypy==0.700 - Check if unknown attributes are invoked on model instances. Add `ignore_missing_model_attributes` flag to control this behaviour
0.11.1
- Fix weird `module 'mypy' has no attribute 'constraints'` crash
0.11.0
- Fix `SessionBase.exists()` return type - Fix `classproperty` - Improve typechecking of `Model` attributes of functions, thanks to syastrov
class A(models.Model): pass class B(models.Model): pass def service(a: A) -> int: pass service(B()) now it fails
0.10.0
- Support for proper return types of `values()` and `values_list`, thanks to syastrov. - Add all reimports for `forms.__init__.pyi`. - Make constructor annotations for `django.core.validators` classes less specific, thanks to kalekseev. - Fix many false positives inside the stubs itself.
0.9.0
- Support returning the correct values for the different QuerySet methods when using .values() and .values_list(). Contributed by syastrov - Fix type errors on other models' managers when using objects = models.Manager() in Model. Contributed by syastrov - Add `gzip_page` decorator. Contributed by mattbasta