Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ W
Class
W
Lib/test/test_typing.py:505–505 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
503
with
self.assertRaisesRegex(TypeError,
504
CANNOT_SUBCLASS_INSTANCE %
'TypeVar'
):
505
class
W(T):
pass
506
507
def
test_cannot_instantiate_vars(self):
508
with
self.assertRaises(TypeError):
Callers
1
cdf
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected