(value: Any)
| 79 | |
| 80 | |
| 81 | def _parse_dt(value: Any) -> Optional[datetime]: |
| 82 | text = str(value or "").strip() |
| 83 | if not text: |
| 84 | return None |
| 85 | try: |
| 86 | return datetime.fromisoformat(text.replace("Z", "+00:00")).replace(tzinfo=None) |
| 87 | except Exception: |
| 88 | return None |
| 89 | |
| 90 | |
| 91 | def _clamp_int(value: Any, min_value: int, max_value: int, default: int) -> int: |
no outgoing calls
no test coverage detected