Skip to content

Make translation of generics, helpers and abstract methods optional #770

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

Merged
merged 3 commits into from
Jun 19, 2025

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jun 18, 2025

By default we won't translate generics, helpers and abstract methods to RBS.

It can be enabled separately:

$ spoom srb sigs translate --translate-generics --translate-helpers --translate-abstract-methods

@Morriar Morriar self-assigned this Jun 18, 2025
@Morriar Morriar requested a review from a team as a code owner June 18, 2025 21:48
@Morriar Morriar added the feature New feature label Jun 18, 2025
class A
extend T::Generic

A = type_member
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick - and I know it makes no actual difference for the test - but can we rename the type member so that it doesn't conflict with the class name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I also renamed it in the other test 👍

Morriar added 3 commits June 19, 2025 11:12
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>
@Morriar Morriar merged commit fe91243 into main Jun 19, 2025
8 checks passed
@Morriar Morriar deleted the at-rbs-options branch June 19, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants