Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve timer commands and checking types #39

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Conversation

longquanzheng
Copy link
Contributor

No description provided.

def timer_command_by_duration(
cls, duration: timedelta, command_id: Optional[str] = None
):
def by_seconds(cls, duration_seconds: int, command_id: Optional[str] = None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename this method as I realized that's a bit awkward to use TimerCommand.timer_command_by_duration(...), and renamed to TimerCommand.by_seconds() looks more concise.

I will put this as a breaking changes in the release.
Luckily our internal users didn't use this API. they use the constructor directly

@longquanzheng longquanzheng merged commit bd706d5 into main Oct 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants