<%= turbo_stream.replace 'notice' do %>
<%= render partial: 'catalog/notice', locals: {notice: @notice} %>
<% end %>
Also works with:
<%= turbo_stream.replace 'notice' do %>
<%= render partial: 'catalog/notice' %>
<% end %>
My IDE also shows a warning “Cannot find declaration for field ‘@notice’”