docstr: Tests that attempting to create a subclass that overrides a final
  method will raise a `TypeError` even if you mark the new version as
  final.
docstr_tok: ["Tests","that","attempting","to","create","a","subclass","that","overrides","a","final","method","will","raise","a","`","TypeError","`","even","if","you","mark","the","new","version","as","final","."]
code: def test_override_final_with_decorator(self):
      """
      Tests that attempting to create a subclass that overrides a final
      method will raise a `TypeError` even if you mark the new version as
      final.
      """
      with self.assertRaises(TypeError):
  
          class SubClass(self.class_):
              @final
              def f(self):
                  return "SubClass: f"
  
imports: from abc import abstractmethod, ABCMeta
  from unittest import TestCase
  from six import with_metaclass
  from catalyst.utils.final import FinalMeta, final
  from catalyst.utils.metautils import compose_types
label_desc: Use image node_id 6 for calling the FinalMetaTestCase obj's underlying member method code with example usage: obj.test_override_final_with_decorator() and returns: str