Skip to content

Commit

Permalink
Add DeferredAttribute.__get__() (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne authored Apr 10, 2024
1 parent 7bace0d commit b32a7a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions django-stubs/db/models/query_utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Q(tree.Node):
class DeferredAttribute:
field: Field
def __init__(self, field: Field) -> None: ...
def __get__(self, instance: Model | None, cls: type[Model] | None = None) -> Any: ...

_R = TypeVar("_R", bound=type)

Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,6 @@ django.db.models.query.RelatedPopulator
django.db.models.query.get_related_populators
django.db.models.query.normalize_prefetch_lookups
django.db.models.query.prefetch_one_level
django.db.models.query_utils.DeferredAttribute.__get__
django.db.models.query_utils.InvalidQuery
django.db.models.query_utils.Q.XOR
django.db.models.query_utils.Q.resolve_expression
Expand Down

0 comments on commit b32a7a0

Please sign in to comment.