-
Notifications
You must be signed in to change notification settings - Fork 25
Allow translation of abstract methods #765
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should insert:
raise NotImplementedError, "Abstract method called"
automatically if Sorbet is then later going to require it anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks! We were just noticing this on our team.
Also added an autocorrect on the body to insert the |
@@ -74,19 +74,29 @@ def a | |||
|
|||
def test_does_not_translate_to_rbs_abstract_methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test name needs updating
6496b0a
to
5e302a0
Compare
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>
5e302a0
to
bf705e0
Compare
Goes from this:
to this:
Should we also insert the
raise
in the body while at it?