  """
  import copy
  import os.path
  import tempfile
  
  import pytest
  from django.contrib.auth import authenticate, login, logout
  from django.contrib.auth.middleware import AuthenticationMiddleware
  from django.contrib.auth.models import User
 
</s>
import sys
  """
  import copy
  import os.path
import sys
  import tempfile
  
  import pytest
  from django.contrib.auth import authenticate, login, logout
  from django.contrib.auth.middleware import AuthenticationMiddleware
  from django.contrib.auth.models import User
keep keep add keep keep keep keep keep keep
 Allow generic requests, responses, fields, views (#8825)

Allow Request, Response, Field, and GenericAPIView to be subscriptable.
This allows the classes to be made generic for type checking.

This is especially useful since monkey patching DRF can be problematic
as seen in this [issue][1].

[1]: https://github.com/typeddjango/djangorestframework-stubs/issues/299
tests/test_request.py