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

Stop accidentally relying on untyped objects #69

Merged
merged 10 commits into from
Nov 18, 2023
Merged

Conversation

bannable
Copy link
Owner

@bannable bannable commented Jul 10, 2023

From sorbet/sorbet#7038, the return type from self.class in a module that uses mixes_in_class_methods is untyped.

To get better type coverage, I am removing most uses of self.class in the library. This also allows me to stop relying on include Kernel in the various Interfaces, and to start treating the protocol objects as proper singletons.

These changes do not affect any public APIs, so there is no version change.

Resolves #69

@bannable bannable force-pushed the resolve-untyped-class branch from de22620 to 9a0ea10 Compare July 10, 2023 02:34
@bannable bannable merged commit 2602c22 into main Nov 18, 2023
4 checks passed
@bannable bannable deleted the resolve-untyped-class branch November 18, 2023 19:00
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.

1 participant