You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many methods in the Open3 module allow us to optionally pass a Hash as the first positional argument (the hash is used to set the environment for the spawned process) e.g.
I can "fix" this by changing the type of the cmd from T.any(String, T::Array[String]) to cmd: T.any(String, T::Array[String], T::Hash[String, String]) but that seems wrong to me. Is there a better way to express these method signatures?
I'm happy to attempt a PR for this.
The text was updated successfully, but these errors were encountered:
Many methods in the Open3 module allow us to optionally pass a
Hash
as the first positional argument (the hash is used to set the environment for the spawned process) e.g.The type signatures for these methods currently forbid this e.g.
sorbet-typed/lib/ruby/all/open3.rbi
Lines 3 to 11 in 22dd994
I can "fix" this by changing the type of the
cmd
fromT.any(String, T::Array[String])
tocmd: T.any(String, T::Array[String], T::Hash[String, String])
but that seems wrong to me. Is there a better way to express these method signatures?I'm happy to attempt a PR for this.
The text was updated successfully, but these errors were encountered: