Skip to content

fix: remove return types for methods without parentheses#24

Merged
yhk1038 merged 1 commit intotype-ruby:mainfrom
giacope:main
Dec 28, 2025
Merged

fix: remove return types for methods without parentheses#24
yhk1038 merged 1 commit intotype-ruby:mainfrom
giacope:main

Conversation

@giacope
Copy link
Copy Markdown
Contributor

@giacope giacope commented Dec 27, 2025

Fix #23

Copy link
Copy Markdown
Contributor

@yhk1038 yhk1038 left a comment

Choose a reason for hiding this comment

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

Great first contribution! 🎉

The fix looks good - properly handles methods without parentheses by using the existing VISIBILITY_PATTERN and METHOD_NAME_PATTERN constants.

Thanks for including a test case as well!

This will be included in the next patch release.
I'm planning to do it today.

@yhk1038 yhk1038 merged commit ecaa305 into type-ruby:main Dec 28, 2025
9 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.

Method signatures without parentheses do not remove the type annotations

2 participants