          response = view(request)
          assert response.data == {'version': None}
  
      def test_namespace_versioning(self):
          class FakeResolverMatch:
              namespace = 'v1'
  
          scheme = versioning.NamespaceVersioning
          view = RequestVersionView.as_view(versioning_class=scheme)
  
 
</s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove class MockVersioningScheme:
 </s> add class MockVersioningScheme(BaseVersioning): </s> remove from django.urls import include, path, re_path
 </s> add from django.urls import ResolverMatch, include, path, re_path
        class FakeResolverMatch(ResolverMatch):
          response = view(request)
          assert response.data == {'version': None}
  
      def test_namespace_versioning(self):
        class FakeResolverMatch(ResolverMatch):
              namespace = 'v1'
  
          scheme = versioning.NamespaceVersioning
          view = RequestVersionView.as_view(versioning_class=scheme)
  
keep keep keep keep replace keep keep keep keep keep
 Inherit from faked classes in tests to satisfy mypy (#8859)

* tests: inherit FakeResolverMatcher from django.urls.ResolverMatcher in tests/test_versioning.py

* tests: inherit from rest_framework.versioning.BaseVersioning in tests/test_reverse.py

* fix: isort

---------

Co-authored-by: Piotr Szyma <pszyma@opera.com> 
tests/test_versioning.py