From 6c52bd84839c85ea9aa551c953275fc9c1595f56 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Thu, 7 Dec 2023 06:15:20 +0200 Subject: [PATCH] fix: Remove `Meta` from `Model` (#215) Pyright 1.1.339 enabled reportIncompatibleVariableOverride=true as part of new default "standard" mode. https://github.com/microsoft/pyright/releases/tag/1.1.339 This leads to > error: "Meta" overrides symbol of same name in class "Model" At runtime, models do not have `Meta` if it's not defined, so it's safe to remove it. --- django-stubs/db/models/base.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/django-stubs/db/models/base.pyi b/django-stubs/db/models/base.pyi index 6970a54b4..d58593a14 100644 --- a/django-stubs/db/models/base.pyi +++ b/django-stubs/db/models/base.pyi @@ -26,7 +26,6 @@ class Model(metaclass=ModelBase): _default_manager: ClassVar[BaseManager[Self]] objects: ClassVar[BaseManager[Self]] - class Meta: ... pk: Any = ... _state: ModelState def __init__(self, *args: Any, **kwargs: Any) -> None: ...