diff --git a/core/kernel.rbs b/core/kernel.rbs index fac5a887d..63898ee6f 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -2233,7 +2233,8 @@ module Kernel : BasicObject # # Raises an exception if the new process could not execute. # - def self?.system: (String command, *String args, ?unsetenv_others: bool, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: bool, ?chdir: String, ?exception: bool) -> (NilClass | FalseClass | TrueClass) + def self?.system: (String command, *String args, ?unsetenv_others: bool, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: bool, ?chdir: String, ?exception: false) -> (NilClass | FalseClass | TrueClass) + | (String command, *String args, ?unsetenv_others: bool, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: bool, ?chdir: String, exception: true) -> TrueClass | (Hash[string, string?] env, String command, *String args, ?unsetenv_others: bool, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: bool, ?chdir: String, ?exception: bool) -> (NilClass | FalseClass | TrueClass) # An interface used with `trace_var` (and `untrace_var`) for custom command types. diff --git a/core/thread.rbs b/core/thread.rbs index b3e7d78c1..7bbaac8ef 100644 --- a/core/thread.rbs +++ b/core/thread.rbs @@ -1719,7 +1719,8 @@ class Thread::Queue[E = untyped] < Object # If `timeout` seconds have passed and no data is available `nil` is returned. # If `timeout` is `0` it returns immediately. # - def pop: (?boolish non_block, ?timeout: _ToF?) -> E? + def pop: (?false non_block, ?timeout: _ToF?) -> E? + | (true non_block) -> E #