Skip to content

Commit

Permalink
Replace Class with T::Class[T.anything] in lhm-shopify RBI
Browse files Browse the repository at this point in the history
Sorbet now considers `Class` to be a generic
(sorbet/sorbet#6781), which means that
annotations continuing to use the bare `Class` in type signatures will
cause type checking errors on newer versions of Sorbet.
  • Loading branch information
egiurleo committed Jun 12, 2023
1 parent 35bf9b9 commit 3b231df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rbi/annotations/lhm-shopify.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Lhm::Migrator
end

module Lhm::Throttler
sig { params(type: T.any(Lhm::Command, Symbol, String, Class), options: T::Hash[T.untyped, T.untyped]).void }
sig { params(type: T.any(Lhm::Command, Symbol, String, T::Class[T.anything]), options: T::Hash[T.untyped, T.untyped]).void }
def setup_throttler(type, options = {}); end

sig { returns(Lhm::Throttler) }
Expand Down Expand Up @@ -184,7 +184,7 @@ end
class Lhm::Throttler::Factory
sig do
params(
type: T.any(Lhm::Command, Symbol, String, Class),
type: T.any(Lhm::Command, Symbol, String, T::Class[T.anything]),
options: T::Hash[T.untyped, T.untyped]
).returns(Lhm::Throttler)
end
Expand Down

0 comments on commit 3b231df

Please sign in to comment.