MCPcopy Index your code
hub / github.com/python/cpython / C

Class C

Lib/test/test_abc.py:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 def test_ABC_helper(self):
75 # create an ABC using the helper class and perform basic checks
76 class C(abc.ABC):
77 @classmethod
78 @abc.abstractmethod
79 def foo(cls): return cls.__name__
80 self.assertEqual(type(C), abc.ABCMeta)
81 self.assertRaises(TypeError, C)
82 class D(C):

Calls

no outgoing calls