diff --git a/django-stubs/db/models/sql/query.pyi b/django-stubs/db/models/sql/query.pyi index bb9742f52..833036fcd 100644 --- a/django-stubs/db/models/sql/query.pyi +++ b/django-stubs/db/models/sql/query.pyi @@ -5,6 +5,7 @@ from typing import Any, NamedTuple from django.db.models import Expression, Field, FilteredRelation, Model, Q, QuerySet from django.db.models.expressions import Combinable from django.db.models.lookups import Lookup, Transform +from django.db.models.options import Options from django.db.models.query_utils import PathInfo, RegisterLookupMixin from django.db.models.sql.compiler import SQLCompiler from django.db.models.sql.datastructures import BaseTable @@ -91,6 +92,7 @@ class Query: def get_compiler( self, using: str | None = ..., connection: Any = ... ) -> SQLCompiler: ... + def get_meta(self) -> Options: ... def clone(self) -> Query: ... def chain(self, klass: type[Query] | None = ...) -> Query: ... def relabeled_clone(