8000 Drop procs.rbi file back to true by jez · Pull Request #5554 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Drop procs.rbi file back to true #5554

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

Merged
merged 1 commit into from
Mar 31, 2022
Merged

Drop procs.rbi file back to true #5554

merged 1 commit into from
Mar 31, 2022

Conversation

jez
Copy link
Collaborator
@jez jez commented Mar 31, 2022

Motivation

The changes in #5525 raced with a change in Stripe's codebase that caused it to
introduce problems. Blocks can take block arguments, and we don't do a great job
of modeling that right now. It used to be fine because we would just ignore the
error when passing blocks to a .call function on a proc type, because the
procs.rbi file was not # typed: strict

Eventually we might want to make it possible to declare proc types that take
blocks (and for that matter: keyword args) but I'm punting on that for today.

Test plan

See included automated tests.

@jez jez requested a review from a team as a code owner March 31, 2022 18:24
@jez jez requested review from elliottt and removed request for a team March 31, 2022 18:24
@jez jez enabled auto-merge (squash) March 31, 2022 18:25
@jez jez merged commit 2ecb49c into master Mar 31, 2022
@jez jez deleted the jez-procs-rbi branch March 31, 2022 18:42
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.

3 participants
0