rbs
rbs copied to clipboard
Type Signature for Ruby
`private` and `protected` shouldn't be sorted by `bin/sort`. Input: ```rbs module Foo def baz: (*untyped) -> untyped private def foo: (*untyped) -> untyped def bar: (*untyped) -> untyped end ```...
Writing different files for tests is a hassle. One possible improvement is to allow embedding tests in RBS files. Similar solutions: * doctest in Python: https://docs.python.org/3/library/doctest.html * Storybook for React...
There is no way to measure how well the tests cover the method call variations. Assume we have a method definition like: ``` def foo: (Integer | String) -> (Symbol...
If you have a test which fails, the stdlib test reports like the following: ``` Minitest::Assertion: Expected ["[Dir.mktmpdir] ReturnTypeError: expected `::Integer` but returns `\"/var/folders/b9/sw1f2b996cd_tclwhhmh5tfc0000gn/T/d20200108-67558-4ri1a4\"`", "[Dir.mktmpdir] ReturnTypeError: expected `::Integer` but returns...
This pull request improves types of Kernel#system and so on. TODO === * [ ] Reduce duplication by the environment argument (see below) * [ ] Reduce duplication by the...
Hello. The `using` method at the top level seems not typed. Is there a way to resolve it? ## Reprodoction The following is a reproduction using Steep. First, prepare a...
RBS raises an error when a class inherits a module mistakenly. ```rbs # test.rbs module M end class C < M end ``` ```console $ rbs -I. validate --silent /path/to/lib/ruby/gems/3.2.0+1/gems/rbs-2.7.0/lib/rbs/definition_builder.rb:393:in...
I write a concern module that supposes to be included by ActiveRecord::Base's subclass. like following, ```ruby module A extend ActiveSupport::Concern included do has_many :hoge end def bar save end end...
- Support generics for classes and modules - Add a new syntax in RDoc comments for generating generics docs in Ruby Depends on [#925](https://github.com/ruby/rdoc/pull/925). - Merge [#925](https://github.com/ruby/rdoc/pull/925) first - Update...
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.62.0 to 1.62.1. Release notes Sourced from rubocop's releases. RuboCop 1.62.1 Bug fixes #12761: Fix a false positive for Style/HashEachMethods when the key block argument of Enumerable#each...