File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
rbi/imagekitio/internal/type Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ group :development do
1111 gem "sorbet"
1212 gem "steep"
1313 gem "syntax_tree"
14- # TODO: using a fork for now, the prettier below has a bug
15- gem "syntax_tree-rbs" , github : "stainless-api/syntax_tree-rbs" , branch : "main"
14+ gem "syntax_tree-rbs" , github : "ruby-syntax-tree/syntax_tree-rbs" , branch : "main"
1615 gem "tapioca"
1716end
1817
Original file line number Diff line number Diff line change 11GIT
2- remote: https://github.com/stainless-api /syntax_tree-rbs.git
3- revision: c30b50219918be7cfe3ef803a00b59d1e77fcada
2+ remote: https://github.com/ruby-syntax-tree /syntax_tree-rbs.git
3+ revision: f94bc3060682ffbd126e4d5086ffedc89073d626
44 branch: main
55 specs:
66 syntax_tree-rbs (1.0.0 )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module Imagekitio
3131 #
3232 # Assumes superclass fields are totally defined before fields are accessed /
3333 # defined on subclasses.
34- sig { params ( child : T . self_type ) . void }
34+ sig { params ( child : Imagekitio :: Internal :: Type :: BaseModel ) . void }
3535 def inherited ( child )
3636 end
3737
@@ -276,9 +276,13 @@ module Imagekitio
276276
277277 # Create a new instance of a model.
278278 sig do
279- params ( data : T . any ( T ::Hash [ Symbol , T . anything ] , T . self_type ) ) . returns (
280- T . attached_class
281- )
279+ params (
280+ data :
281+ T . any (
282+ T ::Hash [ Symbol , T . anything ] ,
283+ Imagekitio ::Internal ::Type ::BaseModel
284+ )
285+ ) . returns ( T . attached_class )
282286 end
283287 def self . new ( data = { } )
284288 end
You can’t perform that action at this time.
0 commit comments