From b70d10ddff6c1a50e93de6600c6270a587b51ef0 Mon Sep 17 00:00:00 2001 From: Mathias Millet <95040253+gg-mmill@users.noreply.github.com> Date: Mon, 31 Jul 2023 12:04:31 +0200 Subject: [PATCH] fix(Options): pk cannot be None Fix the `Options.pk` typing to always be a `Field` --- django-stubs/db/models/options.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/db/models/options.pyi b/django-stubs/db/models/options.pyi index 4216bbad2..fccce7411 100644 --- a/django-stubs/db/models/options.pyi +++ b/django-stubs/db/models/options.pyi @@ -73,7 +73,7 @@ class Options(Generic[_M]): required_db_features: list[str] required_db_vendor: Literal["sqlite", "postgresql", "mysql", "oracle"] | None meta: type | None - pk: Field | None + pk: Field auto_field: AutoField | None abstract: bool managed: bool