(v: Any)
| 35 | |
| 36 | |
| 37 | def parse_cors(v: Any) -> list[str] | str: |
| 38 | if isinstance(v, str) and not v.startswith("["): |
| 39 | return [i.strip() for i in v.split(",") if i.strip()] |
| 40 | elif isinstance(v, list | str): |
| 41 | return v |
| 42 | raise ValueError(v) |
| 43 | |
| 44 | |
| 45 | def parse_key_to_bytes(v: str | bytes | None) -> bytes | None: |
nothing calls this directly
no outgoing calls
no test coverage detected