Skip to content

Commit

Permalink
Merge pull request #416 from yob/tweak-instance-var-type-hints
Browse files Browse the repository at this point in the history
Avoid providing a initial value for instance var type hints in RBI file
  • Loading branch information
yob authored Dec 29, 2021
2 parents 82a4b96 + af63a1a commit 45f87d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rbi/pdf-reader.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ module PDF
).void
end
def initialize(x, y)
@x = T.let(0, Numeric)
@y = T.let(0, Numeric)
@x = T.let(T.unsafe(nil), Numeric)
@y = T.let(T.unsafe(nil), Numeric)
end

sig { returns(Numeric) }
Expand Down Expand Up @@ -1155,10 +1155,10 @@ module PDF
end

def initialize(x1, y1, x2, y2)
@bottom_left = T.let(PDF::Reader::Point.new(0,0), PDF::Reader::Point)
@bottom_right = T.let(PDF::Reader::Point.new(0,0), PDF::Reader::Point)
@top_left = T.let(PDF::Reader::Point.new(0,0), PDF::Reader::Point)
@top_right = T.let(PDF::Reader::Point.new(0,0), PDF::Reader::Point)
@bottom_left = T.let(T.unsafe(nil), PDF::Reader::Point)
@bottom_right = T.let(T.unsafe(nil), PDF::Reader::Point)
@top_left = T.let(T.unsafe(nil), PDF::Reader::Point)
@top_right = T.let(T.unsafe(nil), PDF::Reader::Point)
end

sig { returns(PDF::Reader::Point) }
Expand Down

0 comments on commit 45f87d4

Please sign in to comment.