Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
61
def
subclassof(base):
62
return
type(base.__name__ +
'Subclass'
, (base,), {})
63
64
65
class
SomeError(Exception):
Callers
1
test_float
Method · 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…