From c1997f33bd715557099059ba8bc89fc84b6ef048 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 10 Jul 2026 21:31:00 +0200 Subject: [PATCH] Fix timestamp type in README table --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a1f450..3b582f2 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ print(activity["activity_type"], activity["score"]) | --- | --- | --- | | `weekly` | `list[dict]` with `day`, `hour`, and `count` | `day` is `0` through `6`; `hour` is `0` through `23`; buckets are interpreted as UTC. | | `yearly` | `dict` with `year`, `max`, and `nb` | `nb` is a list of `[YYYY-MM-DD, count]` pairs. Missing days inside the observed range are filled as zero activity. | -| `timestamps` | `list[str | int | float]` | Strings are parsed as UTC timestamps; numbers are Unix epoch seconds in UTC. | +| `timestamps` | `list[str \| int \| float]` | Strings are parsed as UTC timestamps; numbers are Unix epoch seconds in UTC. | Invalid inputs raise `tempolocus.core.DetectionError`, a subclass of `ValueError`. Catch it around user-supplied data if you need to return a custom