lib/packwerk/offenses_formatter.rb in packwerk-3.2.0 vs lib/packwerk/offenses_formatter.rb in packwerk-3.2.1

- old
+ new

@@ -18,11 +18,11 @@ end class << self extend T::Sig - sig { params(base: Class).void } + sig { params(base: T::Class[T.anything]).void } def included(base) offenses_formatters << base end sig { returns(T::Array[OffensesFormatter]) } @@ -41,12 +41,12 @@ sig { void } def load_defaults require("packwerk/formatters/default_offenses_formatter") end - sig { returns(T::Array[Class]) } + sig { returns(T::Array[T::Class[T.anything]]) } def offenses_formatters - @offenses_formatters ||= T.let([], T.nilable(T::Array[Class])) + @offenses_formatters ||= T.let([], T.nilable(T::Array[T::Class[T.anything]])) end sig { params(name: String).returns(OffensesFormatter) } def formatter_by_identifier(name) @formatter_by_identifier ||= T.let(nil, T.nilable(T::Hash[String, T.nilable(OffensesFormatter)]))