Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ Mock
Class
Mock
Lib/test/test_typing.py:124–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
122
123
def
test_can_subclass(self):
124
class
Mock(Any):
pass
125
self.assertIsSubclass(Mock, Any)
126
self.assertIsInstance(Mock(), Mock)
127
Callers
2
test_can_subclass
Method · 0.70
test_force_shutdown_workers
Method · 0.50
Calls
no outgoing calls
Tested by
2
test_can_subclass
Method · 0.56
test_force_shutdown_workers
Method · 0.40
Used in the wild
real call sites across dependent graphs
searching dependent graphs…