Skip to content

Commit

Permalink
Merge pull request #535 from erinnachen/add-stringio-to-sig
Browse files Browse the repository at this point in the history
Allow StringIO type for PDF::Reader input
  • Loading branch information
yob authored Feb 21, 2024
2 parents 7b73e6c + dfdb78f commit 2d4b750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbi/pdf-reader.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module PDF
sig { returns(PDF::Reader::ObjectHash) }
attr_reader :objects

sig { params(input: T.any(String, Tempfile, IO), opts: T::Hash[T.untyped, T.untyped]).void }
sig { params(input: T.any(String, Tempfile, IO, StringIO), opts: T::Hash[T.untyped, T.untyped]).void }
def initialize(input, opts = {})
@cache = T.let(T.unsafe(nil), PDF::Reader::ObjectCache)
@objects = T.let(T.unsafe(nil), PDF::Reader::ObjectHash)
Expand Down

0 comments on commit 2d4b750

Please sign in to comment.