Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ModelBase.objects declaration to Model.objects, for mypy 1.5.0
mypy 1.5.0 was fixed to understand that metaclass attributes take precedence over attributes in the regular class. So we need to declare `objects` in the regular class to allow it to be overridden in subclasses. Fixes typeddjango#1648. Signed-off-by: Anders Kaseorg <[email protected]>
- Loading branch information