MCPcopy Index your code
hub / github.com/ipython/ipython / interesting_default_value

Function interesting_default_value

docs/autogen_config.py:17–22  ·  view source on GitHub ↗
(dv)

Source from the content-addressed store, hash-verified

15
16
17def interesting_default_value(dv):
18 if (dv is None) or (dv is Undefined):
19 return False
20 if isinstance(dv, (str, list, tuple, dict, set)):
21 return bool(dv)
22 return True
23
24def format_aliases(aliases):
25 fmted = []

Callers 1

class_config_rst_docFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…