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

Bump python-crontab to 3.1.* #12008

Merged
merged 1 commit into from
May 23, 2024
Merged

Bump python-crontab to 3.1.* #12008

merged 1 commit into from
May 23, 2024

Conversation

sobolevn
Copy link
Member

Closes #12004

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@@ -259,6 +259,7 @@ class CronSlice:
def __iter__(self) -> Iterator[int]: ...
def __len__(self) -> int: ...
def parse_value(self, val: str, sunday: int | None = ...) -> int | CronValue: ...
def test_value(self, value: str, sunday: int | None = None) -> str: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a weird one. In every() it's actually called with int. It seems we really need a type var here (bound to ConvertibleToInt).

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's maybe separate refactoring and a version bump? Let it be consistent with parse_value for now. There are lots of things to fix in this module.

@srittau srittau merged commit b8e3562 into main May 23, 2024
48 checks passed
@srittau srittau deleted the issue-12004 branch May 23, 2024 09:02
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.

2 participants