From 7998515aa7702af34bc5fafcfaced9186c027afb Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 17 Feb 2023 14:30:53 +0900 Subject: [PATCH] Update IO wait* methods --- core/io/wait.rbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/io/wait.rbs b/core/io/wait.rbs index a5dd6f6a4..662fb6d59 100644 --- a/core/io/wait.rbs +++ b/core/io/wait.rbs @@ -38,8 +38,8 @@ class IO # # You must require 'io/wait' to use this method. # - def wait: (Integer events, ?Numeric timeout) -> (self | bool | nil) - | (?Numeric? timeout, *wait_mode mode) -> (self | bool | nil) + def wait: (Integer events, ?Numeric timeout) -> (Integer | false | nil) + | (?Numeric? timeout, *wait_mode mode) -> (self | true | false) type wait_mode = :read | :r | :readable | :write | :w | :writable | :read_write | :rw | :readable_writable @@ -54,7 +54,7 @@ class IO # # You must require 'io/wait' to use this method. # - def wait_readable: (?Numeric? timeout) -> (self | bool | nil)? + def wait_readable: (?Numeric? timeout) -> boolish #