rbs
rbs copied to clipboard
Type Signature for Ruby
This PR updates `Enumerable#include?` (and `member?`) to accept `untyped` instead of `Elem`
This exist to fix ruby/ruby CI until #2706 is merged and gems/bundled_gems in ruby/ruby can be bumped to rbs trunk. See https://github.com/ruby/ruby/commit/de6c4b62b00023ef372bae4c434f58014c3c8382 and the CI failures in parent commits.
This PR adds in the `Comparable::_CompareToZero` interface, which is the actual return type that `Comparable` expects `` to return.
For editor support in the Ruby LSP, it'd be great if this were standardized by rbs. See also https://github.com/Shopify/ruby-lsp/issues/1773 I see that there are deprecation signatures in RBS syntax that...
PHEW! This was a long one, but now `Hash` is finally done! This PR updates all of the definitions within `hash.rbs` to be more correct, as well as modernizes the...
This PR deprecates the top-level `float` type, as it's mostly pointless and is not an implicit conversion (like all the other top-level alias types). Most places you'd expect to use...
This PR adds tests (and updates a couple) "querying methods" in `Kernel`
This PR adds tests for `Kernel.{abort,exit,exit!,at_exit}` and `Kernel.{throw,catch,raise,fail}`, as well as slightly tweaking the `fail` signature. Additionally, it adds in the `assert_send_type_error` method (which is just a direct copy of...
This PR tweaks some of the `Kernel` conversion methods' signatures, as well as cleaning up/adding relevant tests. Of particular note is that the numeric conversions (`Integer`/`Float`/`Complex`/`Rational`)'s final signature (the `(untyped,...
This PR adds `Kernel.trace_var` and `Kernel.untrace_var` in, along with the `Kernel::_Tracer` interface. This is a pretty simple PR to ease back into things!