Skip to content

Commit bdb4b88

Browse files
authored
Add Options._get_fields (#2254)
1 parent 7573e2e commit bdb4b88

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

django-stubs/db/models/options.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ class Options(Generic[_M]):
122122
def get_fields(
123123
self, include_parents: bool = ..., include_hidden: bool = ...
124124
) -> list[Field[Any, Any] | ForeignObjectRel | GenericForeignKey]: ...
125+
def _get_fields(
126+
self,
127+
forward: bool = ...,
128+
reverse: bool = ...,
129+
include_parents: bool | object = ...,
130+
include_hidden: bool = ...,
131+
topmost_call: bool = ...,
132+
) -> list[Field[Any, Any] | ForeignObjectRel | GenericForeignKey]: ...
125133
@cached_property
126134
def total_unique_constraints(self) -> list[UniqueConstraint]: ...
127135
@cached_property

0 commit comments

Comments
 (0)