(value: Any)
| 110 | |
| 111 | |
| 112 | def parse_iso(value: Any) -> datetime: |
| 113 | if not value: |
| 114 | return datetime.fromtimestamp(0, tz=timezone.utc) |
| 115 | try: |
| 116 | return datetime.fromisoformat(str(value).replace("Z", "+00:00")) |
| 117 | except ValueError: |
| 118 | return datetime.fromtimestamp(0, tz=timezone.utc) |
| 119 | |
| 120 | |
| 121 | def parse_file(path: Path, root: Path) -> dict[str, Any] | None: |
no outgoing calls
no test coverage detected