diff --git a/core/kernel.rbs b/core/kernel.rbs index b50e58111..277791eb1 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -480,9 +480,12 @@ module Kernel : BasicObject # def self?.Complex: (_ToC complex_like, ?exception: true) -> Complex | (_ToC complex_like, exception: bool) -> Complex? - | (Numeric | String real, ?Numeric | String imag, ?exception: true) -> Complex - | (Numeric | String real, ?Numeric | String imag, exception: bool) -> Complex? - | (untyped, ?untyped, ?exception: bool) -> Complex? + | (Numeric numeric, ?exception: bool) -> Complex + | (String real_or_both, ?exception: true) -> Complex + | (untyped real_or_both, exception: bool) -> Complex? + | (Numeric | String real, Numeric | String imag, ?exception: true) -> Complex + | (Numeric | String real, Integer | Float | Rational | Complex imag, exception: bool) -> Complex + | (Numeric | String real, untyped imag, exception: bool) -> Complex? #