sig/plugins/multipart.rbs in httpx-0.15.4 vs sig/plugins/multipart.rbs in httpx-0.16.0

- old
+ new

@@ -11,21 +11,19 @@ { content_type: String, filename: String, body: multipart_value } | { content_type: String, body: multipart_value } type multipart_nested_value = multipart_value | _ToAry[multipart_value] | _ToHash[string, multipart_value] - type multipart_input = Enumerable[[string, multipart_value], untyped] - class Encoder include Transcoder::_Encoder include _Reader def content_type: () -> String private - def initialize: (_Each[Symbol | string, multipart_nested_value] multipart_data) -> untyped + def initialize: (_Each[[Symbol | string, multipart_nested_value]] multipart_data) -> untyped def header_part: (string key, String content_type, String? filename) -> StringIO def read_chunks: (String buffer, Integer? length) -> void @@ -35,10 +33,10 @@ module Part def self?.call: (multipart_nested_value) -> ([_Reader, String, String?]) end module MimeTypeDetector - def self?.call: (IO file, ?String filename) -> String? + def self?.call: (::IO file, ?String filename) -> String? end end end end