rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Type Signature for Ruby

Results 271 rbs issues
Sort by recently updated
recently updated
newest added

Hello! I have "Cannot find '::Net'" error after performing `rbs collection install`. When I perform `git submodule add https://github.com/ruby/gem_rbs_collection.git vendor/rbs/gem_rbs_collection` ::Net module remains available. This may be related with https://github.com/ruby/rbs/issues/853...

Decl added using `RBS::Environment# # buffer, directives, decls = RBS::Parser.parse_signature("class Bar\nend") env.add_signature(buffer: buffer, directives: directives, decls: decls) p env #=> # p env.resolve_type_names #=> # ```

This PR enables Steep in the test directory only for completion. # Problem Currently, Steep does nothing in the test directory. I think a lack of type-checking is acceptable. Because...

Hey, just getting an error when running `rbs collection update`, while `rbs` is a required dependency in the Gemfile: ``` Uncaught exception: Cannot find `set` from standard libraries /Users/hjwylde/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rbs-3.0.0/lib/rbs/collection/config/lockfile_generator.rb:156:in `assign_stdlib'...

bug

Sorry if I'm wrong in my understanding of the specs or where to report it. The following code does not generate a parse error No error occurs on steep also....

bug

Deciding that block is essential is difficult and often wrong. This method of following type signature, ```rb def foo yield if block_given? end ``` I expected to following. ``` def...

cat test.rb ``` class Sample def テスト(引数: 1,foo: 3) p 引数,foo end alias サンプル テスト end ``` `rbs prototype rb test.rb` to generate actual ``` class Sample def `テスト`: (?引数:...

Currently, argument types of `def foo(...)` is `(*untyped)`, but it will be changed to `(*untyped, **untyped **)` if ruby/ruby#6818 is merged. The current behavior depends on the implementation details of...

Ref: https://github.com/soutaro/steep/issues/472 Currently RBS doesn't have any syntax to narrow types in control flow. So there's no way to achieve the following: ```ruby a = [1, nil].sample # a is...

I'm just following readme instructions here, init works and install gives me this: ```sh rbs collection install /Users/gabrielrohden/.asdf/installs/ruby/3.2.3/lib/ruby/3.2.0/psych/parser.rb:62:in `_native_parse': (): mapping values are not allowed in this context at line...