Skip to content

Commit d252ecf

Browse files
chore: improve rbi typedef for page classes (#6)
1 parent 0c423cb commit d252ecf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rbi/lib/openai/cursor_page.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module OpenAI
2929
headers: T.any(T::Hash[String, String], Net::HTTPHeader),
3030
page_data: T::Hash[Symbol, T.anything]
3131
)
32-
.void
32+
.returns(T.attached_class)
3333
end
34-
def initialize(client:, req:, headers:, page_data:)
34+
def self.new(client:, req:, headers:, page_data:)
3535
end
3636
end
3737
end

rbi/lib/openai/page.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module OpenAI
2929
headers: T.any(T::Hash[String, String], Net::HTTPHeader),
3030
page_data: T::Array[T.anything]
3131
)
32-
.void
32+
.returns(T.attached_class)
3333
end
34-
def initialize(client:, req:, headers:, page_data:)
34+
def self.new(client:, req:, headers:, page_data:)
3535
end
3636
end
3737
end

0 commit comments

Comments
 (0)