diff --git a/stdlib/optparse/0/optparse.rbs b/stdlib/optparse/0/optparse.rbs index b7638f6b2..6005b48aa 100644 --- a/stdlib/optparse/0/optparse.rbs +++ b/stdlib/optparse/0/optparse.rbs @@ -677,8 +677,10 @@ class OptionParser # def on: (*String params) ?{ (*untyped) -> untyped } -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self | (*String params, Proc | Method handler) -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self #