7 ms·
It is a pity the type hinting is done in a separate file though, as it leads to a lot of duplication. In this case, I pretty much prefer Python’s approach.
by progressbwc 6y ago
It is a pity the type hinting is done in a separate file though, as it leads to a lot of duplication. In this case, I pretty much prefer Python’s approach.
- Lio 6y agoYou can still use the inline type hinting from Sorbet. Sorbet is compatible with RBS and you'll probably want to check types via Sorbet anyway.
- nerdponx 6y agoFWIW Python does also support type hinting in separate files, although the use case is mostly in adding annotations to existing code bases.