Skip to content

Replace T::Module with Module in RBS comment signatures#2576

Open
Morriar wants to merge 1 commit intomainfrom
at/replace-t-module-with-module-in-rbs-comments
Open

Replace T::Module with Module in RBS comment signatures#2576
Morriar wants to merge 1 commit intomainfrom
at/replace-t-module-with-module-in-rbs-comments

Conversation

@Morriar
Copy link
Copy Markdown
Contributor

@Morriar Morriar commented Apr 2, 2026

Summary

  • Replace T::Module[top] with Module[top] and T::Module[T.anything] with Module[T.anything] in all RBS comment signatures (#: and #| lines)
  • T::Module is Sorbet runtime syntax; in RBS comments, the correct type is just Module
  • Runtime Sorbet code (sig blocks, T.cast, T::Set, etc.) is left unchanged

Test plan

  • CI passes -- this is a comment-only change with no runtime behavior impact

T::Module is Sorbet runtime syntax. In RBS comments, the correct type
is Module[top] (or Module[T.anything]), not T::Module[top].

This change only affects RBS comment signatures (#: and #| lines),
leaving runtime Sorbet code (sig blocks, T.cast, T::Set, etc.) unchanged.
@Morriar Morriar requested a review from a team as a code owner April 2, 2026 21:55
@Morriar Morriar added the chore label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant