GitHub

BareNumberDurationWarning

API reference for BareNumberDurationWarning.

A bare number was given as a duration and read as milliseconds (fx.sleep(2) sleeps 2 ms, as in Effect). Emitted only when the PYFECT_WARN_BARE_DURATIONS environment variable is set (and not 0); PYFECT_WARN_BARE_DURATIONS=error raises it instead.