Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ CustomError
Class
CustomError
test/test_box.py:1408–1409 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1406
1407
def
test_nontype_recast(self):
1408
class
CustomError(ValueError):
1409
pass
1410
1411
def
cast_id(val) -> int:
1412
if
val ==
"bad_id"
:
Callers
1
cast_id
Method · 0.85
Calls
no outgoing calls
Tested by
1
cast_id
Method · 0.68