mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-12 06:51:53 +08:00
* Refactor to more easily support additional config options * Notify when Manager.from_queryset happens inside model class body - A warning will be emitted whenever `Manager.from_queryset` happens inside of a model class body * Resolve generated default manager types before final iteration A default manager on a model should always exist, eventually. Although, we extend to look through dynamically generated managers on each iteration instead of deferring until the final iteration.
4 lines
125 B
Python
4 lines
125 B
Python
from mypy.errorcodes import ErrorCode
|
|
|
|
MANAGER_UNTYPED = ErrorCode("django-manager", "Untyped manager disallowed", "Django")
|