rbs
rbs copied to clipboard
Type Signature for Ruby
Backport https://github.com/ruby/rbs/pull/1912
The `default.close` line sometimes raises an error: https://github.com/ruby/actions/actions/runs/9667790393/job/26670618280#step:16:330 ``` =============================================================================== Error: test_grpowned?(FileTestSingletonTest): Errno::EBADF: Bad file descriptor test/stdlib/FileTest_test.rb:13:in 'IO#close' test/stdlib/FileTest_test.rb:13:in 'FileTestSingletonTest#with_path_io' test/stdlib/FileTest_test.rb:73:in 'FileTestSingletonTest#test_grpowned?' test/stdlib/io/Buffer_test.rb:67: warning: IO::Buffer is experimental and both the...
Add types for singleton methods of GzipReader. Also, fix the incorrect types.
This PR is a retry of https://github.com/ruby/rbs/pull/1779 . I have stopped returning `bot`. Then I changed testing method to raap. The Digest classes require a lot of changes when modifying...
Currently `sleep(2 ** 2)` results in a type error since `2 ** 2` returns `Numeric` type. Because of these problems, it does not seem very convenient to set the return...
I propose to introduce [rubocop-on-rbs](https://github.com/ksss/rubocop-on-rbs). This is a lint tool for RBS file. This tool automates trivial indentation and style remarks during review. # Examples of remarks from RuboCop #...
Bumps [rdoc](https://github.com/ruby/rdoc) from 6.6.3.1 to 6.7.0. Release notes Sourced from rdoc's releases. v6.7.0 What's Changed Fix support for rb_file_const and rb_curses_define_const by @nobu in ruby/rdoc#1069 Bump actions/upload-pages-artifact from 2 to...
The method name was incorrect. `#with_nonreturn_void` should be renamed to `#with_nonreturn_void?`. refs: #1905
I got NoMethodError from the following RBS file when I run `rbs validate`: ``` class Object def foo: () { (?) -> untyped } -> nil end ``` ``` $...
Argument of `Enumerator#initialize` allows `nil`, `#call` and `#to_int` object. Included `Float::INFINITY` in `#to_int`. https://github.com/ruby/ruby/blob/ac9e84df3d0b06e62498aafbca99e8f8475ec142/enumerator.c#L437-L451