File: test_response.yml

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (5 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
- case: response_object_has_text_of_type_str
  main: |
      from typing_extensions import reveal_type
      from django.http.response import HttpResponse
      reveal_type(HttpResponse().text)  # N: Revealed type is "builtins.str"