diff --git a/core/file.rbs b/core/file.rbs index 16028ed10e..22b4aab8dc 100644 --- a/core/file.rbs +++ b/core/file.rbs @@ -847,7 +847,7 @@ class File < IO # * [Open Options](rdoc-ref:IO@Open+Options). # * [Encoding options](rdoc-ref:encodings.rdoc@Encoding+Options). # - def initialize: (string | _ToPath | int file_name, ?string | int mode, ?int perm) -> void + def initialize: (path | int file_name, ?string | int mode, ?int perm) -> void #