Does Ruby still not allow type annotations in the same file as your code? Last time I checked, you had to put them in separate .rbs files. That’s a dealbreaker for me
You can with a third party library, Sorbet. It's not the nicest experience due to not being native but it works much better than you'd expect without being native.