Normalize identifiers so empty strings do not poison UNIQUE columns.
(value: Optional[str])
| 27 | |
| 28 | |
| 29 | def _normalize_identifier(value: Optional[str]) -> Optional[str]: |
| 30 | """Normalize identifiers so empty strings do not poison UNIQUE columns.""" |
| 31 | if value is None: |
| 32 | return None |
| 33 | normalized = str(value).strip() |
| 34 | return normalized or None |
| 35 | |
| 36 | |
| 37 | def _deserialize_json_list(value: Any) -> List[Any]: |
no outgoing calls
no test coverage detected