(field: str, val: object)
| 37 | |
| 38 | |
| 39 | def _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 | |
| 47 | def _option_key(opt: object) -> tuple: |
no outgoing calls
no test coverage detected