MCPcopy Index your code
hub / github.com/idank/explainshell / _normalize

Function _normalize

explainshell/diff.py:39–44  ·  view source on GitHub ↗
(field: str, val: object)

Source from the content-addressed store, hash-verified

37
38
39def _normalize(field: str, val: object) -> object:
40 if field in _FALSY_EQUIVALENT and not val:
41 return None
42 if field == "aliases" and isinstance(val, list):
43 return sorted(val)
44 return val
45
46
47def _option_key(opt: object) -> tuple:

Callers 2

compare_manpagesFunction · 0.85
format_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected