MCPcopy Create free account
hub / github.com/ipython/ipython / interesting_default_value

Function interesting_default_value

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

Source from the content-addressed store, hash-verified

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

Callers 1

class_config_rst_docFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected