rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Fix IO#reopen, add open3 missing sigs

Open HoneyryderChuck opened this issue 10 months ago • 1 comments

IO#reopen should be able to receive the same kwargs that IO#open receives; also, the mode can be an integer too.

Have a separate commit adding missing sigs for open3. @soutaro this is currently a WIP, as the sigs can't be expressed fully in RBS:

  • most functions accept an optional options hash at the end, despite commands (string) already supporting optional (string) args as well. it's like a second set of optional args, and this can't be expressed in RBS.
  • some functions (i.e. pipeline_w return an array where the first element is stdin/stdout (IO) and the rest is one or more wait threads. "variable size" tuples can't be expressed in RBS yet as well.

HoneyryderChuck avatar Mar 25 '25 23:03 HoneyryderChuck

@ksss I'll write the tests once we address the broken behaviour for this type of signature 👍

HoneyryderChuck avatar Apr 01 '25 15:04 HoneyryderChuck