Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ subtype
Class
subtype
Lib/test/string_tests.py:68–69 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
if
obj is realresult:
67
try
:
68
class
subtype(self.__class__.type2test):
69
pass
70
except
TypeError:
71
pass
# Skip this if we can't subclass
72
else
:
Callers
1
checkequal
Method · 0.85
Calls
no outgoing calls
Tested by
1
checkequal
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…