Skip to content

Commit

Permalink
fix method sigs for ObjectHash
Browse files Browse the repository at this point in the history
deref_hash! and deref_array! can return nil - the ! is about how they're
recursive
  • Loading branch information
yob committed Apr 18, 2022
1 parent a3ab511 commit 8f88ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rbi/pdf-reader.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,10 @@ module PDF
sig { params(key: T.untyped).returns(T.untyped) }
def deref!(key); end

sig { params(key: T.untyped).returns(T::Array[T.untyped]) }
sig { params(key: T.untyped).returns(T.nilable(T::Array[T.untyped])) }
def deref_array!(key); end

sig { params(key: T.untyped).returns(T::Hash[Symbol, T.untyped]) }
sig { params(key: T.untyped).returns(T.nilable(T::Hash[Symbol, T.untyped])) }
def deref_hash!(key); end

sig { params(key: T.untyped, local_default: T.untyped).returns(T.untyped) }
Expand Down

0 comments on commit 8f88ade

Please sign in to comment.