Repository navigation
fix(rbi): drop invalid overload sigs from Workflow.upsert_memo - #689
Merged
chris-olszewski merged 1 commit intoNov 23, 2026
Merged
Conversation
Sorbet rejects overload sigs that use keyword arguments (srb.help/5003), which broke srb tc for consumers. The remaining sig already covers the hash and **memo forms. Signed-off-by: Alex <[email protected]>
chris-olszewski
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #683
Cause:
Workflow.upsert_memointemporalio/rbi/temporalio/workflow.rbideclared twooverload.params(...)sigs plus a plain sig. Sorbet rejectsoverloadin this context, and it rejects every overload on a method that has keyword arguments (event_groupsand**memo), including the implementation sig while those overloads are present.srb tcfails withMalformed sig(https://srb.help/5003). No other overload shape typechecks: the keyword split lives in the RBS file, which already has the two forms.Fix: remove the two overload sigs and keep the plain sig, which is the change requested on the issue. It accepts the positional hash,
event_groups:and**memo, matchingupsert_memo(hash = nil, event_groups: nil, **memo). A call that passes both a hash and keywords still typechecks and still raisesArgumentErrorat runtime; Sorbet cannot express that split. Added a changelog fragment.Test: Sorbet 0.6.13715 on
temporalio/rbi/temporalio/workflow.rbireports 7srb.help/5003errors before the change and 0 after. The check exits 0 only when that count is 0.Disclosure: this change was prepared with AI assistance.