Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 22, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

Part of #17297

Copilot AI review requested due to automatic review settings December 22, 2025 23:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds Sorbet typed: strict mode to the options.rb file as part of the broader initiative (#17297) to enforce strict typing across all non-package files in the Homebrew organization. The changes add comprehensive type signatures to all methods and classes in the file to satisfy Sorbet's strict mode requirements.

  • Upgraded from typed: true to typed: strict
  • Added type signatures to all methods in Option, DeprecatedOption, and Options classes
  • Added explicit type annotations using T.let for some instance variables and modified comparison operators to handle type checking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Symbols were used for predefined options, which are no longer supported.
@cho-m
Copy link
Member Author

cho-m commented Dec 23, 2025

Failure is typo in some formulae

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good thanks again @cho-m!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 23, 2025
Merged via the queue into main with commit 9145925 Dec 23, 2025
56 of 57 checks passed
@MikeMcQuaid MikeMcQuaid deleted the options-strict-type branch December 23, 2025 11:20
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