      path('view', null_view, name='view'),
  ]
  
  
  class MockVersioningScheme:
  
      def __init__(self, raise_error=False):
          self.raise_error = raise_error
  
      def reverse(self, *args, **kwargs):
 
</s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove from django.urls import include, path, re_path
 </s> add from django.urls import ResolverMatch, include, path, re_path
class MockVersioningScheme(BaseVersioning):
      path('view', null_view, name='view'),
  ]
  
  
class MockVersioningScheme(BaseVersioning):
  
      def __init__(self, raise_error=False):
          self.raise_error = raise_error
  
      def reverse(self, *args, **kwargs):
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_reverse.py