Skip to content

Fix Sidekiq::Job::Setter#at type - #1065

Merged
github-actions[bot] merged 1 commit into
ruby:mainfrom
akitoshiga:fix/sidekiq-deprecated-float-type
Sep 2, 2026
Merged

Fix Sidekiq::Job::Setter#at type#1065
github-actions[bot] merged 1 commit into
ruby:mainfrom
akitoshiga:fix/sidekiq-deprecated-float-type

Conversation

@akitoshiga

@akitoshiga akitoshiga commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The top-level float alias is deprecated in RBS 4. This PR replaces it with _ToF, preserving the accepted argument type without producing a validation warning.

Sidekiq::Job::Setter#at converts the value with #to_f:
https://github.com/sidekiq/sidekiq/blob/7df28434f03fa1111e9e2834271c020205369f94/lib/sidekiq/job.rb#L254-L260

I've confirmed bin/test gems/sidekiq/7.0 passes with this change.

@akitoshiga
akitoshiga force-pushed the fix/sidekiq-deprecated-float-type branch from b66040b to bede040 Compare September 2, 2026 08:14
@akitoshiga akitoshiga changed the title Fix deprecated float type in Sidekiq 7.0 Fix Sidekiq::Job::Setter#at type Sep 2, 2026
@akitoshiga
akitoshiga force-pushed the fix/sidekiq-deprecated-float-type branch from bede040 to 8b547ad Compare September 2, 2026 08:16
The top-level `float` alias is deprecated in RBS 4. Use `_ToF`, which
preserves the accepted argument type without producing a validation warning.
@akitoshiga
akitoshiga force-pushed the fix/sidekiq-deprecated-float-type branch from 8b547ad to 5a8ab14 Compare September 2, 2026 08:16
@akitoshiga
akitoshiga marked this pull request as ready for review September 2, 2026 08:17
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

@akitoshiga Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

sidekiq

You changed RBS files for an existing gem.
This gem does not have reviewers. So you can merge this PR immediately if the CI passes.
We recommend you add yourself to the reviewers for this gem.

@akitoshiga

Copy link
Copy Markdown
Contributor Author

/merge

@github-actions
github-actions Bot merged commit 31250b6 into ruby:main Sep 2, 2026
6 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.

1 participant