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

Introduce Sorbet #135

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Introduce Sorbet #135

merged 1 commit into from
Sep 27, 2024

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Aug 17, 2024

Last few errors are pending fixes upstream.

I'm using typed: strong (higher type level than strict) to ban T.untyped, including implicit untyped from external method returns, except for:

  • src/github_client.rb (new wrapper)
  • src/server.rb

which I've made the only two files to interface with third-party gems. Those two files don't have T.untyped anywhere explicitly but do interface with calling methods from gems that return values that are untyped (Tapioca's RBIs do not contain any type information and third-parties rarely ship their own RBIs). Octokit in particular is pretty bad for typechecking. The new GitHub wrapper I've made here doesn't really solve that problem but at least quarantines it to one place.

p-linnane
p-linnane previously approved these changes Aug 17, 2024
Copy link
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

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

What a diff! Thanks!

Copy link

github-actions bot commented Sep 8, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@Bo98 Bo98 marked this pull request as ready for review September 27, 2024 03:53
@Bo98 Bo98 merged commit 7ae2b5f into main Sep 27, 2024
4 checks passed
@Bo98 Bo98 deleted the sorbet branch September 27, 2024 03:56
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.

2 participants