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

Add type definition Enumerable#tally and Module#const_source_location #3521

Merged

Conversation

ohbarye
Copy link
Contributor

@ohbarye ohbarye commented Oct 17, 2020

I added type definitions for the methods below.

  • Enumerable#tally
  • Module#const_source_location

Motivation

By adding those definitions, Sorbet would get a bit more useful in Ruby 2.7.

Related: #2390

Test plan

I added test data and confirmed that bazel test test --config=dbg passed.

@ohbarye ohbarye requested a review from a team as a code owner October 17, 2020 08:04
@ohbarye ohbarye requested review from jez and removed request for a team October 17, 2020 08:04
rbi/core/enumerable.rbi Outdated Show resolved Hide resolved
rbi/core/module.rbi Outdated Show resolved Hide resolved
@jez jez merged commit 2db748f into sorbet:master Oct 17, 2020
@ohbarye ohbarye deleted the add-type-definition-tally-and-const_source_location branch October 18, 2020 01:14
@ohbarye
Copy link
Contributor Author

ohbarye commented Oct 18, 2020

Thanks for your review and for fixing my mistakes!

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.

None yet

2 participants