Skip to content

Commit

Permalink
fix: Remove Meta from Model (#215)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
last-partizan authored Dec 7, 2023
1 parent 6dfc2df commit 6c52bd8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion django-stubs/db/models/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit 6c52bd8

Please sign in to comment.