Skip to content
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

sorbet: Comment more files that can't be strict because of undef #17997

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Aug 9, 2024

  • 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?

- Found with
  `grep -rL "# typed: strict" Library/Homebrew | xargs grep -l "undef "`.
- This stops people from trying to bump them and
  getting an error that they can't fix because
  [it's a Sorbet limitation](https://sorbet.org/docs/error-reference#3008),
  wasting contributor time.
@carlocab
Copy link
Member

carlocab commented Aug 9, 2024

I suspect many (if not all) of these undefs can be removed, so it may still be possible to make these typed: strict

@issyl0
Copy link
Member Author

issyl0 commented Aug 9, 2024

Oooh, in that case, sounds like we should write another issue to investigate removing them?

@carlocab
Copy link
Member

carlocab commented Aug 9, 2024

Oooh, in that case, sounds like we should write another issue to investigate removing them?

Yep, fine to merge if we have an issue like that.

@issyl0 issyl0 merged commit 8744032 into master Aug 9, 2024
31 checks passed
@issyl0 issyl0 deleted the srb-more-undefs-cant-be-strict branch August 9, 2024 17:50
@MikeMcQuaid
Copy link
Member

Would be nice if there was a wait for a response to "Are all of the undefs we use really necessary?" before we went "yes, let's remove a bunch" 😉

@issyl0
Copy link
Member Author

issyl0 commented Aug 9, 2024

This PR doesn't remove a bunch, it just notes that we can't Sorbet strict these files.

The issue doesn't remove any either, just lays the groundwork with where they exist, and invites someone to answer the question.

I don't think at any point we said "yes let's remove them"?

@MikeMcQuaid
Copy link
Member

This PR doesn't remove a bunch, it just notes that we can't Sorbet strict these files.

Doh, I'm sorry 🤦🏻. Misread. Idiot, apologies!

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