From 337ce64e85a0e0a0c25f2dcf94f654ece4057472 Mon Sep 17 00:00:00 2001 From: ksss Date: Wed, 14 Jan 2026 09:43:55 +0900 Subject: [PATCH] Fix Zlib::GzipWriter signatures --- stdlib/zlib/0/gzip_writer.rbs | 7 +- test/stdlib/zlib/GzipWriter_test.rb | 114 ++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 test/stdlib/zlib/GzipWriter_test.rb diff --git a/stdlib/zlib/0/gzip_writer.rbs b/stdlib/zlib/0/gzip_writer.rbs index 9dfc47c8c..4f6cc0836 100644 --- a/stdlib/zlib/0/gzip_writer.rbs +++ b/stdlib/zlib/0/gzip_writer.rbs @@ -38,7 +38,8 @@ module Zlib # returns a GzipWriter object associated with that file. Further details of # this method are found in Zlib::GzipWriter.new and Zlib::GzipFile.wrap. # - def self.open: (String filename) { (instance gz) -> void } -> instance + def self.open: (String filename, ?Integer level, ?Integer strategy, **untyped opts) -> instance + | (String filename, ?Integer level, ?Integer strategy, **untyped opts) { (instance gz) -> void } -> nil #