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