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

Function subclassof

Lib/test/test_capi/test_number.py:61–62  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

59
60
61def subclassof(base):
62 return type(base.__name__ + 'Subclass', (base,), {})
63
64
65class SomeError(Exception):

Callers 1

test_floatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…