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

Method getclass

Lib/test/test_isinstance.py:28–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 def test_class_has_no_bases(self):
27 class I(object):
28 def getclass(self):
29 # This must return an object that has no __bases__ attribute
30 return None
31 __class__ = property(getclass)
32
33 class C(object):

Callers

nothing calls this directly

Calls 1

EClass · 0.70

Tested by

no test coverage detected