Accept Numeric by Integer#{upto,downto} by pocke · Pull Request #914 · ruby/rbs
Integer#{upto,downto} accept Float, Rational, and so on. This PR allows them. By the way, the type definitions will also accept Complex as the argument but actually it raises an error on Ruby level...