Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ NotAString
Class
NotAString
tests/utils/test_importstring.py:22–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
21
def
test_bad_input(self):
22
class
NotAString:
23
pass
24
25
msg =
"import_item accepts strings, not '%s'."
% NotAString
26
with
self.assertRaisesRegex(TypeError, msg):
Callers
1
test_bad_input
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_bad_input
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…