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

Migrate to RBS signatures supported by Sorbet #2209

Merged
merged 5 commits into from
Feb 21, 2025
Merged

Migrate to RBS signatures supported by Sorbet #2209

merged 5 commits into from
Feb 21, 2025

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Feb 20, 2025

This PRs bump our Sorbet version to v0.5.11842 so we can start using RBS comment signatures instead of the sig{} syntax 🎉

I migrated all the signatures using spoom srb sigs translate.

Note that for the moment we're not translating signatures that contain abstract.

@Morriar Morriar added the chore label Feb 20, 2025
@Morriar Morriar self-assigned this Feb 20, 2025
@Morriar Morriar requested a review from a team as a code owner February 20, 2025 22:20
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

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

Looks good to me!

This code works by miracle.

We call `fetch_annotation` within a `select` but the method return `void`.
It only works because the `T::Private::Types::Void::VOID` used by
`sorbet-runtime` to replace the actual value is truthy.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Using `spoom srb sigs translate`

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar merged commit 89022df into main Feb 21, 2025
18 checks passed
@Morriar Morriar deleted the at-rbs branch February 21, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants