diff --git a/lib/ruby_indexer/lib/ruby_indexer/index.rb b/lib/ruby_indexer/lib/ruby_indexer/index.rb index aba69d098d..d858934abc 100644 --- a/lib/ruby_indexer/lib/ruby_indexer/index.rb +++ b/lib/ruby_indexer/lib/ruby_indexer/index.rb @@ -617,7 +617,7 @@ def existing_or_new_singleton_class(name) sig do type_parameters(:T).params( path: String, - type: T::Class[T.all(T.type_parameter(:T), Entry)], + type: T.nilable(T::Class[T.all(T.type_parameter(:T), Entry)]), ).returns(T::Array[T.type_parameter(:T)]) end def entries_for(path, type = nil)