Skip to content

Remove eval workaround for keyword arguments in SigAttrReaderNode and SigAttrWriterNode#329

Merged
mame merged 1 commit intoruby:masterfrom
x-smasato:remove-eval-workaround-for-keyword-args
Jun 24, 2025
Merged

Remove eval workaround for keyword arguments in SigAttrReaderNode and SigAttrWriterNode#329
mame merged 1 commit intoruby:masterfrom
x-smasato:remove-eval-workaround-for-keyword-args

Conversation

@smasato
Copy link
Contributor

@smasato smasato commented Jun 24, 2025

This PR removes the eval workaround that was used to prevent TypeProf from failing to parse keyword arguments during dogfooding. Since TypeProf now supports keyword arguments, this workaround is no longer necessary.

TypeProf now supports keyword arguments, so the eval workaround
is no longer necessary. This makes the code more readable and
maintainable by directly calling RBS::MethodType.new with
keyword arguments.

Changes:
- Remove eval blocks from SigAttrReaderNode#initialize
- Remove eval blocks from SigAttrWriterNode#initialize
- Remove associated TODO comments

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Member

@mame mame left a comment

Choose a reason for hiding this comment

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

Thanks!

@mame mame merged commit 9abbc38 into ruby:master Jun 24, 2025
7 checks passed
@smasato smasato deleted the remove-eval-workaround-for-keyword-args branch June 24, 2025 09:21
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.

2 participants