              raise exceptions.NotFound(self.invalid_version_message)
          return version
  
      def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra):
          url = super(QueryParameterVersioning, self).reverse(
              viewname, args, kwargs, request, format, **extra
          )
          if request.version is not None:
              return replace_query_param(url, self.version_param, request.version)
          return url
 
</s> remove         return super(NamespaceVersioning, self).reverse(
 </s> add         return super().reverse( </s> remove         return super(URLPathVersioning, self).reverse(
 </s> add         return super().reverse( </s> remove         response = super(APIClient, self).options(
 </s> add         response = super().options( </s> remove         response = super(APIClient, self).delete(
 </s> add         response = super().delete( </s> remove         response = super(APIClient, self).patch(
 </s> add         response = super().patch(
        url = super().reverse(
              raise exceptions.NotFound(self.invalid_version_message)
          return version
  
      def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra):
        url = super().reverse(
              viewname, args, kwargs, request, format, **extra
          )
          if request.version is not None:
              return replace_query_param(url, self.version_param, request.version)
          return url
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/versioning.py