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

activesupport: update to_xml signature to use an optional block #741

Merged

Conversation

hjwylde
Copy link
Contributor

@hjwylde hjwylde commented Dec 6, 2024

Split from #735 to be smaller. Type signature updates for invalid signatures in activesupport, due to blocks being marked as required, but they should be optional.

Copy link

github-actions bot commented Dec 6, 2024

@hjwylde Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

activesupport

You changed RBS files for an existing gem.
You need to get approval from the reviewers of this gem.

@hibariya, @ksss, @ydah, @tk0miya, please review this pull request.
If this change is acceptable, please make a review comment including APPROVE from here.
Screen Shot 2024-03-19 at 14 13 36

After that, the PR author or the reviewers can merge this PR.
Just comment /merge to merge this PR.

Copy link
Contributor

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

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

APPROVE

# </message>
# </messages>
#
def to_xml: (?::Hash[untyped, untyped] options) ?{ (untyped) -> untyped } -> untyped
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Just to clarify, are these notes just for references to the relevant code, or review points?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After reading the other reviews I believe they are just references, so I'll merge this one too, thank you.

# The default XML builder is a fresh instance of <tt>Builder::XmlMarkup</tt>. You can
# configure your own builder with the <tt>:builder</tt> option. The method also accepts
# options like <tt>:dasherize</tt> and friends, they are forwarded to the builder.
def to_xml: (?::Hash[untyped, untyped] options) ?{ (untyped) -> untyped } -> untyped
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link

github-actions bot commented Dec 7, 2024

Thanks for your review, @tk0miya!

@hjwylde, @tk0miya This PR is ready to be merged.
Just comment /merge to merge this PR.

@hjwylde
Copy link
Contributor Author

hjwylde commented Dec 8, 2024

/merge

@github-actions github-actions bot merged commit f2fa96b into ruby:main Dec 8, 2024
7 checks passed
@hjwylde hjwylde deleted the hjwylde/activesupport-signature-updates branch December 8, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants