In Python 3.14 and before, sleep() accepts:
- actual
float (or subtype),
- or
int-like, i.e. SupportsIndex.
From Python 3.15 (alpha 5), sleep() accepts:
float-like, i.e. SupportsFloat,
- or
int-like, i.e. SupportsIndex.
See discussion on different topic.
However, typeshed specifies float only:
def sleep(seconds: float, /) -> None: ...
I suggest to change that to actually accepted parameters.