stdlib/open-uri/0/open-uri.rbs in rbs-3.6.0.pre.2 vs stdlib/open-uri/0/open-uri.rbs in rbs-3.6.0.pre.3

- old
+ new

@@ -19,10 +19,10 @@ # URI::FTP#open, Kernel#open. # # We can accept URIs and strings that begin with http://, https:// and ftp://. # In these cases, the opened file object is extended by OpenURI::Meta. # - def self.open: (String name, ?String mode, ?Integer perm, ?untyped options) -> (StringIO & OpenURI::Meta | Tempfile & OpenURI::Meta) + def self.open: (String name, ?String mode, ?Integer perm, ?untyped options) -> ((StringIO & OpenURI::Meta) | (Tempfile & OpenURI::Meta)) | [T] (String name, ?String mode, ?Integer perm, ?untyped options) { (StringIO | Tempfile) -> T } -> T end # <!-- rdoc-file=lib/open-uri.rb --> # OpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP.