Skip to content

Conversation

dduugg
Copy link
Member

@dduugg dduugg commented Sep 6, 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 style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Just prototyping, curious what happens if we enable recursive typechecking in specs. (Feel free to comment if you think this is or isn't a valuable route to pursue further.)

This is done via 🐒-patching due to sorbet/sorbet#3800

@dduugg dduugg marked this pull request as draft September 6, 2025 02:33
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 4 times, most recently from 673dea3 to 0fbb5f9 Compare September 6, 2025 23:49
@dduugg dduugg changed the title Deep typecheck arrays in specs Enable recursive typechecking in specs Sep 7, 2025
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 11 times, most recently from a41154e to ef60d2e Compare September 8, 2025 03:04
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.

This is a great idea!

@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 6 times, most recently from 924a4ed to 56ce625 Compare September 8, 2025 18:19
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.

I'm good to land this if/when you are.

@dduugg
Copy link
Member Author

dduugg commented Sep 11, 2025

I'm good to land this if/when you are.

Sounds good, this still needs some work though (I want to limit this to specs for now, it's currently turned on globally for my own convenience. The commits also need to be squashed. I want to make a final pass that the updates make sense (I made a couple small changes last night), and elaborate in comments/todos where I've undertaken some light refactoring.)

@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 4 times, most recently from 1f8a945 to eeabdfe Compare September 15, 2025 03:06
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 3 times, most recently from bc49416 to cd8688f Compare September 15, 2025 03:30
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch from cd8688f to a5ca197 Compare September 15, 2025 03:40
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch 7 times, most recently from 6884770 to de72b6d Compare September 15, 2025 06:02
@dduugg dduugg force-pushed the dug/deep-typecheck-specs branch from de72b6d to 7b2171a Compare September 15, 2025 06:05
@dduugg dduugg marked this pull request as ready for review September 15, 2025 23:44
@dduugg
Copy link
Member Author

dduugg commented Sep 15, 2025

I confirmed in the sorbet slack that this is the best approach currently available. Opening for re-review for anyone who wants to take a look, otherwise i'll merge within the next day or so.

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.

Thanks @dduugg, great work here!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Sep 16, 2025
Merged via the queue into main with commit 1a38b81 Sep 16, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the dug/deep-typecheck-specs branch September 16, 2025 07:38
@fxcoudert
Copy link
Member

This may have caused this bug, reported by multiple users (including me): #20703

$ brew up
==> Updating Homebrew...
Updated 1 tap (homebrew/core).
Error: Return value: Expected type {A: T::Array[String], AC: T::Array[String], D: T::Array[String], DC: T::Array[String], M: T::Array[String], MC: T::Array[String], R: T::Array[[String, String]], RC: T::Array[[String, String]]}, got type {M: Array}
Caller: /opt/homebrew/Library/Homebrew/cmd/update-report.rb:635
Definition: /opt/homebrew/Library/Homebrew/cmd/update-report.rb:479 (Reporter#report)

@MikeMcQuaid
Copy link
Member

Reverted in #20705 but re-applied with a fix in #20705

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