dbader / dbader/schedule

schedule.every expects int instead of float

Open
#559 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12.3k
Forks
999
PR merge metrics
No merged PRs in 30d

Description

floats seem to still work so it may just be a type hinting mistake.
def every(interval: int = 1) -> Job
should become
def every(interval: float = 1) -> Job

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `every` function definition and inspect how its interval annotation is used. Update the annotation to accept floats, then run the existing test suite and confirm that scheduling with a fractional interval still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.