Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_errors
Method
test_errors
Lib/test/test_typing.py:6287–6290 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6285
self.assertEqual(cast(None, 42), 42)
6286
6287
def
test_errors(self):
6288
# Bogus calls are not expected to fail.
6289
cast(42, 42)
6290
cast(
'hello'
, 42)
6291
6292
6293
class
AssertTypeTests(BaseTestCase):
Callers
nothing calls this directly
Calls
1
cast
Function · 0.90
Tested by
no test coverage detected