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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Introduce Sorbet #135

wants to merge 1 commit into from

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.

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.

@github-actions github-actions bot added the Stale label Sep 8, 2024
@Bo98 Bo98 removed the Stale label Sep 8, 2024
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