(value: str | None)
| 26 | |
| 27 | |
| 28 | def _normalize_optional_string(value: str | None) -> str | None: |
| 29 | if value is None: |
| 30 | return None |
| 31 | |
| 32 | normalized = value.strip() |
| 33 | return normalized or None |
| 34 | |
| 35 | |
| 36 | def _normalize_base_url(base_url: str | httpx.URL) -> httpx.URL: |