Skip to content

Commit

Permalink
Change PDF::Reader::CidWidths to strict typing
Browse files Browse the repository at this point in the history
Build on the work started in #461, hoping to flush out some bugs
  • Loading branch information
yob committed Apr 18, 2022
1 parent 4539d16 commit 17a80c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/pdf/reader/cid_widths.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# coding: utf-8
# typed: true
# typed: strict
# frozen_string_literal: true

#

require 'forwardable'

class PDF::Reader
Expand Down
2 changes: 1 addition & 1 deletion rbi/pdf-reader.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module PDF
@widths = T.let(T.unsafe(nil), T::Hash[Numeric, Numeric])
end

sig { params(default: Numeric, array: T::Array[Numeric]).returns(T.untyped) }
sig { params(default: Numeric, array: T::Array[Numeric]).returns(T::Hash[Numeric, Numeric]) }
def parse_array(default, array); end

sig { params(first: Integer, widths: T::Array[Numeric]).returns(T::Hash[Numeric, Numeric]) }
Expand Down

0 comments on commit 17a80c3

Please sign in to comment.