          if headers:
              for name, value in headers.items():
                  self[name] = value
  
      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
          accepted_media_type = getattr(self, 'accepted_media_type', None)
          context = getattr(self, 'renderer_context', None)
  
 
</s>
    # Allow generic typing checking for responses.
    def __class_getitem__(cls, *args, **kwargs):
        return cls

          if headers:
              for name, value in headers.items():
                  self[name] = value
  
    # Allow generic typing checking for responses.
    def __class_getitem__(cls, *args, **kwargs):
        return cls

      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
          accepted_media_type = getattr(self, 'accepted_media_type', None)
          context = getattr(self, 'renderer_context', None)
  
keep 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
rest_framework/response.py