Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ CallableMagicHat
Class
CallableMagicHat
IPython/core/tests/test_formatters.py:343–345 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
341
nt.assert_not_in(
"FormatterWarning"
, captured.stderr)
342
343
class
CallableMagicHat(object):
344
def
__getattr__(self, key):
345
return
lambda
: key
346
347
call_hat = CallableMagicHat()
348
with
capture_output()
as
captured:
Callers
1
test_print_method_weird
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_print_method_weird
Function · 0.68