diff --git a/core/integer.rbs b/core/integer.rbs index 76a5616bf..f20d26d39 100644 --- a/core/integer.rbs +++ b/core/integer.rbs @@ -1028,9 +1028,10 @@ class Integer < Numeric # a.pow(b) #=> same as a**b # a.pow(b, m) #=> same as (a**b) % m, but avoids huge temporary values # - def pow: (Integer other, ?Integer modulo) -> Integer - | (Float) -> Float - | (Rational) -> Rational + def pow: (Integer other) -> (Integer | Rational) + | (Integer other, Integer modulo) -> Integer + | (Float) -> (Float | Complex) + | (Rational) -> (Float | Rational | Complex) | (Complex) -> Complex #