Skip to content

Commit 64211a2

Browse files
committed
Since HttpResponse.text uses @cached_property, add it in allowlist.txt
It was previously in allowlist_todo_django52.txt because it is a Django 5.2 addition, and was not implemented in django-stubs yet. It is now in allowlist.txt because it uses @cached_property, which stubtest currently doesn't handle (details: typeddjango#1771)
1 parent 0dee11d commit 64211a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/stubtest/allowlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,10 @@ django.forms.renderers.Jinja2.backend
395395
django.forms.renderers.Jinja2DivFormRenderer.__init__
396396
django.http.HttpRequest.accepted_types
397397
django.http.HttpRequest.headers
398+
django.http.HttpResponse.text
398399
django.http.request.HttpRequest.accepted_types
399400
django.http.request.HttpRequest.headers
401+
django.http.response.HttpResponse.text
400402
django.middleware.csrf.CsrfViewMiddleware.allowed_origin_subdomains
401403
django.middleware.csrf.CsrfViewMiddleware.allowed_origins_exact
402404
django.middleware.csrf.CsrfViewMiddleware.csrf_trusted_origins_hosts

0 commit comments

Comments
 (0)